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; }
protected EPlanChild getActivityNamed(EPlan plan, String name) { for (EPlanChild child : plan.getChildren()) { if (child.getName() == name) { return child; } } return null; }