public static List<String> getBuiltInTypeNames() { List<String> names = new ArrayList<String>(); for (BuiltInType builtInType : BUILT_IN_TYPES) { names.add(builtInType.getName()); } return names; }
public static BuiltInType valueOf(String name) { for (BuiltInType type : BUILT_IN_TYPES) { if (type.getName().equalsIgnoreCase(name)) { return type; } } return null; }
private static BuiltInType createBuiltInType(String typeName) { BuiltInType retVal = MyDslFactory.eINSTANCE.createBuiltInType(); retVal.setName(typeName); return retVal; }