Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public static BuiltInType valueOf(String name) {
   for (BuiltInType type : BUILT_IN_TYPES) {
     if (type.getName().equalsIgnoreCase(name)) {
       return type;
     }
   }
   return null;
 }
Exemplo n.º 3
0
 private static BuiltInType createBuiltInType(String typeName) {
   BuiltInType retVal = MyDslFactory.eINSTANCE.createBuiltInType();
   retVal.setName(typeName);
   return retVal;
 }