コード例 #1
0
 protected static List<String> getActivityNames(EList<EPlanChild> children) {
   List<String> result = new ArrayList<String>(children.size());
   for (EPlanChild child : children) {
     result.add(child.getName());
   }
   return result;
 }
コード例 #2
0
 protected EPlanChild getActivityNamed(EPlan plan, String name) {
   for (EPlanChild child : plan.getChildren()) {
     if (child.getName() == name) {
       return child;
     }
   }
   return null;
 }