_builder.newLineIfNotEmpty(); Type _type_2 = refParam.getType(); if ((_type_2 instanceof Entity)) { Type _type_3 = refParam.getType(); final Entity entity = ((Entity) _type_3); _builder.newLineIfNotEmpty(); boolean _isMultiplicity_1 = refParam.isMultiplicity(); if (_isMultiplicity_1) { _builder.append("\""); Type _type_4 = refParam.getType(); if ((_type_4 instanceof org.eclipse.vorto.core.api.model.datatype.Enum)) { Type _type_5 = refParam.getType(); final org.eclipse.vorto.core.api.model.datatype.Enum enum_ = ((org.eclipse.vorto.core.api.model.datatype.Enum) _type_5); _builder.newLineIfNotEmpty(); boolean _isMultiplicity_2 = refParam.isMultiplicity(); if (_isMultiplicity_2) { _builder.append("\"");
_and = false; } else { Type _type = ((RefParam) param).getType(); _and = (_type instanceof org.eclipse.vorto.core.api.model.datatype.Enum);
_and = false; } else { Type _type = ((RefParam) param).getType(); _and = (_type instanceof org.eclipse.vorto.core.api.model.datatype.Enum);
/** * Returns the parameter as string */ public static String getParameterTypeAsString(final Param parameter) { if ((parameter instanceof PrimitiveParam)) { PrimitiveType _type = ((PrimitiveParam) parameter).getType(); return ValueMapper.mapSimpleDatatype(((PrimitiveType) _type)); } else { if ((parameter instanceof RefParam)) { RefParam object = ((RefParam) parameter); Type _type_1 = object.getType(); if ((_type_1 instanceof Entity)) { Type _type_2 = object.getType(); String _name = ((Entity) _type_2).getName(); return StringExtensions.toFirstUpper(_name); } else { Type _type_3 = object.getType(); if ((_type_3 instanceof org.eclipse.vorto.core.api.model.datatype.Enum)) { Type _type_4 = object.getType(); String _name_1 = ((org.eclipse.vorto.core.api.model.datatype.Enum) _type_4).getName(); return StringExtensions.toFirstUpper(_name_1); } } } } return null; }
/** * Returns the parameter as string */ public static String getParameterTypeAsString(final Param parameter) { if ((parameter instanceof PrimitiveParam)) { PrimitiveType _type = ((PrimitiveParam) parameter).getType(); return ValueMapper.mapSimpleDatatype(((PrimitiveType) _type)); } else { if ((parameter instanceof RefParam)) { RefParam object = ((RefParam) parameter); Type _type_1 = object.getType(); if ((_type_1 instanceof Entity)) { Type _type_2 = object.getType(); String _name = ((Entity) _type_2).getName(); return StringExtensions.toFirstUpper(_name); } else { Type _type_3 = object.getType(); if ((_type_3 instanceof org.eclipse.vorto.core.api.model.datatype.Enum)) { Type _type_4 = object.getType(); String _name_1 = ((org.eclipse.vorto.core.api.model.datatype.Enum) _type_4).getName(); return StringExtensions.toFirstUpper(_name_1); } } } } return null; }
private static Set<Type> getTypes(FunctionblockModel model) { Set<Type> allTypes = new LinkedHashSet<>(); TreeIterator<EObject> iterator = model.eAllContents(); while(iterator.hasNext()) { EObject current = iterator.next(); if (current instanceof RefParam) { addTypeAndReferences(((RefParam)current).getType(),allTypes); } else if (current instanceof ReturnObjectType) { addTypeAndReferences(((ReturnObjectType)current).getReturnType(),allTypes); } else if (current instanceof ObjectPropertyType) { addTypeAndReferences(((ObjectPropertyType)current).getType(),allTypes); } } return allTypes; }
_builder.newLineIfNotEmpty(); Type _type_1 = object.getType(); if ((_type_1 instanceof Entity)) { Type _type_2 = object.getType(); String _name_1 = ((Entity) _type_2).getName(); String _firstUpper = StringExtensions.toFirstUpper(_name_1); _builder.newLineIfNotEmpty(); } else { Type _type_3 = object.getType(); if ((_type_3 instanceof org.eclipse.vorto.core.api.model.datatype.Enum)) { Type _type_4 = object.getType(); String _name_3 = ((org.eclipse.vorto.core.api.model.datatype.Enum) _type_4).getName(); String _firstUpper_1 = StringExtensions.toFirstUpper(_name_3);
_builder.newLineIfNotEmpty(); Type _type_1 = object.getType(); if ((_type_1 instanceof Entity)) { Type _type_2 = object.getType(); String _name_1 = ((Entity) _type_2).getName(); String _firstUpper = StringExtensions.toFirstUpper(_name_1); _builder.newLineIfNotEmpty(); } else { Type _type_3 = object.getType(); if ((_type_3 instanceof org.eclipse.vorto.core.api.model.datatype.Enum)) { Type _type_4 = object.getType(); String _name_3 = ((org.eclipse.vorto.core.api.model.datatype.Enum) _type_4).getName(); String _firstUpper_1 = StringExtensions.toFirstUpper(_name_3);
for (final Param param : _params) { if ((param instanceof RefParam)) { Type _type = ((RefParam) param).getType(); EList<Type> _referencedTypes_4 = Utils.getReferencedTypes(_type); types.addAll(_referencedTypes_4);