예제 #1
0
 public List<Clazz> getClazzWithoutAsptect(Aspect a) {
   List<Clazz> classWithAsptect = new ArrayList<Clazz>();
   List<Clazz> l = ((ClassPackage) CommonServices.getRootContainer(a)).getAllClasses();
   for (Clazz clazz : l) {
     for (Aspect ca : clazz.getAllAspects()) {
       if (ca.getName().equals(a.getName())) {
         classWithAsptect.add(clazz);
       }
     }
   }
   l.removeAll(classWithAsptect);
   return l;
 }
예제 #2
0
 public List<Attribute> getSearchableAttibutes(AbstractClass c) {
   List<Attribute> l = new ArrayList<Attribute>();
   EList<Attribute> allAttributes = null;
   if (c instanceof Clazz) {
     Clazz cz = (Clazz) c;
     allAttributes = cz.getAllAttributes();
   } else {
     allAttributes = c.getAttributes();
   }
   for (Attribute att : allAttributes) {
     for (MetaInfo mi : att.getMetainfo()) {
       if (mi.getKey().equalsIgnoreCase("propertySearched")
           && mi.getValue().equalsIgnoreCase("true")) {
         l.add(att);
       }
     }
   }
   return l;
 }