Example #1
0
 @Override
 public Function getFunction(String name) {
   for (Function function : getFunctions()) {
     if (function.getName().equalsIgnoreCase(name)) {
       return function;
     }
   }
   return null;
 }
Example #2
0
 @Override
 public List<Function> getFunctions(String name) {
   List<Function> list = new EList<Function>();
   for (Function f : getFunctions()) {
     if (f.getName().equalsIgnoreCase(name)) {
       list.add(f);
     }
   }
   return list;
 }