예제 #1
0
 public static ArrayList<Type> findSimpleType(ThingMLModel model, String name, boolean fuzzy) {
   ArrayList<Type> result = new ArrayList<Type>();
   for (Type t : allSimpleTypes(model)) {
     if (t.getName() != null) {
       if (t.getName().startsWith(name)) {
         if (fuzzy) result.add(t);
         else if (t.getName().equals(name)) result.add(t);
       }
     }
   }
   return result;
 }
예제 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public Type getIndexType() {
   if (indexType != null && indexType.eIsProxy()) {
     InternalEObject oldIndexType = (InternalEObject) indexType;
     indexType = (Type) eResolveProxy(oldIndexType);
     if (indexType != oldIndexType) {
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 ThingmlPackage.DICTIONARY__INDEX_TYPE,
                 oldIndexType,
                 indexType));
     }
   }
   return indexType;
 }