/** * Returns the '<em><b>Primitive Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param literal the literal. * @return the matching enumerator or <code>null</code>. * @generated */ public static PrimitiveType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrimitiveType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Primitive Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param literal the literal. * @return the matching enumerator or <code>null</code>. * @generated */ public static PrimitiveType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { PrimitiveType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
protected String getPrimitivePropertyType(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.toString(); } else { return "UNDEFINED"; } }
final String primitiveTypeStr = ( (PrimitivePropertyTypeImpl) type ).getType().toString();