示例#1
0
 /*
  * @see org.tigris.gef.util.Predicate#predicate(java.lang.Object)
  */
 public boolean predicate(Object o) {
   if (!(Model.getFacade().isAUMLElement(o))) {
     return false;
   }
   Object me = o;
   return theType.predicate(me)
       && specific.predicate(me)
       && elementName.predicate(Model.getFacade().getName(me));
 }
示例#2
0
 /**
  * @param m the given package
  * @return true if the name of the given package is equal
  */
 public boolean matchPackage(Object m) {
   boolean res = packageName.predicate(Model.getFacade().getName(m));
   return res;
 }
示例#3
0
 /**
  * @param name the name to match
  * @return true if the name of the given diagram equals
  */
 public boolean matchDiagram(String name) {
   return diagramName.predicate(name);
 }