/** * Returns the '<em><b>Primitive Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param name the name. * @return the matching enumerator or <code>null</code>. * @generated */ public static PrimitiveType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrimitiveType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Primitive Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param name the name. * @return the matching enumerator or <code>null</code>. * @generated */ public static PrimitiveType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrimitiveType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
public static String getReturnType(final ReturnType type) { if ((type instanceof ReturnPrimitiveType)) { PrimitiveType _returnType = ((ReturnPrimitiveType) type).getReturnType(); return _returnType.getName(); } else { if ((type instanceof ReturnObjectType)) { Type _returnType_1 = ((ReturnObjectType) type).getReturnType(); return _returnType_1.getName(); } } return null; }
/** * Returns the return type as string */ public static String getReturnTypeAsString(final Operation op) { ReturnType _returnType = op.getReturnType(); boolean _notEquals = (!Objects.equal(_returnType, null)); if (_notEquals) { ReturnType returnType = op.getReturnType(); if ((returnType instanceof ReturnObjectType)) { Type _returnType_1 = ((ReturnObjectType) returnType).getReturnType(); return _returnType_1.getName(); } else { if ((returnType instanceof ReturnPrimitiveType)) { PrimitiveType _returnType_2 = ((ReturnPrimitiveType) returnType).getReturnType(); return _returnType_2.getName(); } } } else { return "void"; } return null; }
/** * Returns the return type as string */ public static String getReturnTypeAsString(final Operation op) { ReturnType _returnType = op.getReturnType(); boolean _notEquals = (!Objects.equal(_returnType, null)); if (_notEquals) { ReturnType returnType = op.getReturnType(); if ((returnType instanceof ReturnObjectType)) { Type _returnType_1 = ((ReturnObjectType) returnType).getReturnType(); return _returnType_1.getName(); } else { if ((returnType instanceof ReturnPrimitiveType)) { PrimitiveType _returnType_2 = ((ReturnPrimitiveType) returnType).getReturnType(); return _returnType_2.getName(); } } } else { return "void"; } return null; }
public static String getPropertyType(final Property property) { PropertyType _type = property.getType(); if ((_type instanceof PrimitivePropertyType)) { PropertyType _type_1 = property.getType(); PrimitiveType _type_2 = ((PrimitivePropertyType) _type_1).getType(); return _type_2.getName(); } else { PropertyType _type_3 = property.getType(); if ((_type_3 instanceof ObjectPropertyType)) { PropertyType _type_4 = property.getType(); Type _type_5 = ((ObjectPropertyType) _type_4).getType(); return _type_5.getName(); } } return null; }
public void verifyConstraintForType(final PrimitivePropertyType primitivePropertyType, final Constraint constraint, final boolean isMultiplcity) { PrimitiveType _type = primitivePropertyType.getType(); boolean _isValidConstraintType = this.isValidConstraintType(_type, constraint); boolean _not = (!_isValidConstraintType); if (_not) { String _errorMessage = this.propertyValidator.getErrorMessage(); this.error(_errorMessage, constraint, DatatypePackage.Literals.CONSTRAINT__TYPE); } else { ConstraintIntervalType _type_1 = constraint.getType(); ConstraintValueValidator validator = ConstraintValidatorFactory.getValueValidator(_type_1); PrimitiveType _type_2 = primitivePropertyType.getType(); boolean _isValidConstraintValue = this.isValidConstraintValue(validator, _type_2, constraint); boolean _not_1 = (!_isValidConstraintValue); if (_not_1) { String _errorMessage_1 = validator.getErrorMessage(); this.error(_errorMessage_1, constraint, DatatypePackage.Literals.CONSTRAINT__CONSTRAINT_VALUES); } } PrimitiveType _type_3 = primitivePropertyType.getType(); String _name = _type_3.getName(); boolean _isMimeConstraint = this.isMimeConstraint(_name, constraint); if (_isMimeConstraint) { if ((!isMultiplcity)) { this.error(DatatypeSystemMessage.ERROR_MIMETYPE_FOR_BYTE, constraint, DatatypePackage.Literals.CONSTRAINT__TYPE); } } }
_builder.append("public "); PrimitiveType _returnType_11 = primitiveType.getReturnType(); String _name_6 = _returnType_11.getName(); _builder.append(_name_6, ""); _builder.append(" "); _builder.append("\t"); PrimitiveType _returnType_13 = primitiveType.getReturnType(); String _name_8 = _returnType_13.getName(); _builder.append(_name_8, "\t"); _builder.append(" result;"); _builder.append("\t"); PrimitiveType _returnType_14 = primitiveType.getReturnType(); String _name_9 = _returnType_14.getName(); _builder.append(_name_9, "\t"); _builder.append(" result = ");
_builder.append("public "); PrimitiveType _returnType_11 = primitiveType.getReturnType(); String _name_6 = _returnType_11.getName(); _builder.append(_name_6, ""); _builder.append(" "); _builder.append("\t"); PrimitiveType _returnType_13 = primitiveType.getReturnType(); String _name_8 = _returnType_13.getName(); _builder.append(_name_8, "\t"); _builder.append(" result;"); _builder.append("\t"); PrimitiveType _returnType_14 = primitiveType.getReturnType(); String _name_9 = _returnType_14.getName(); _builder.append(_name_9, "\t"); _builder.append(" result = ");
_builder.newLineIfNotEmpty(); _builder.append("\t"); String _name_20 = type_1.getName(); _builder.append(_name_20, "\t"); _builder.append(" ");
_builder.append("public "); PrimitiveType _returnType_5 = primitiveType.getReturnType(); String _name_10 = _returnType_5.getName(); _builder.append(_name_10, "\t"); _builder.append(" ");
PropertyType _type_1 = property.getType(); PrimitiveType _type_2 = ((PrimitivePropertyType) _type_1).getType(); String _name_5 = _type_2.getName(); _builder.append(_name_5, "\t"); _builder.append(" "); PropertyType _type_10 = property_1.getType(); PrimitiveType _type_11 = ((PrimitivePropertyType) _type_10).getType(); String _name_11 = _type_11.getName(); _builder.append(_name_11, "\t"); _builder.append(" "); PropertyType _type_19 = property_2.getType(); PrimitiveType _type_20 = ((PrimitivePropertyType) _type_19).getType(); String _name_17 = _type_20.getName(); _builder.append(_name_17, "\t"); _builder.append(" "); _builder.append("\t"); _builder.append("public "); String _name_35 = type_1.getName(); _builder.append(_name_35, "\t"); _builder.append(" "); _builder.append("\t"); _builder.append("\t"); String _name_37 = type_1.getName(); _builder.append(_name_37, "\t\t"); _builder.append(" value;");
_builder.newLineIfNotEmpty(); _builder.append("\t"); String _name_20 = type_1.getName(); _builder.append(_name_20, "\t"); _builder.append(" ");
PropertyType _type_1 = property.getType(); PrimitiveType _type_2 = ((PrimitivePropertyType) _type_1).getType(); String _name_5 = _type_2.getName(); _builder.append(_name_5, "\t"); _builder.append(" "); PropertyType _type_10 = property_1.getType(); PrimitiveType _type_11 = ((PrimitivePropertyType) _type_10).getType(); String _name_11 = _type_11.getName(); _builder.append(_name_11, "\t"); _builder.append(" "); PropertyType _type_19 = property_2.getType(); PrimitiveType _type_20 = ((PrimitivePropertyType) _type_19).getType(); String _name_17 = _type_20.getName(); _builder.append(_name_17, "\t"); _builder.append(" "); _builder.append("\t"); _builder.append("public "); String _name_35 = type_1.getName(); _builder.append(_name_35, "\t"); _builder.append(" "); _builder.append("\t"); _builder.append("\t"); String _name_37 = type_1.getName(); _builder.append(_name_37, "\t\t"); _builder.append(" value;");
_builder.append("public "); PrimitiveType _returnType_5 = primitiveType.getReturnType(); String _name_7 = _returnType_5.getName(); _builder.append(_name_7, "\t"); _builder.append(" ");
_builder.append("public "); PrimitiveType _returnType_5 = primitiveType.getReturnType(); String _name_7 = _returnType_5.getName(); _builder.append(_name_7, "\t"); _builder.append(" ");
_builder.append("public "); PrimitiveType _returnType_5 = primitiveType.getReturnType(); String _name_10 = _returnType_5.getName(); _builder.append(_name_10, "\t"); _builder.append(" ");