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