public ClassModelSet withoutEnumerations(Enumeration value) { for (ClassModel obj : this) { obj.withoutEnumerations(value); } return this; }
public ClassModelSet withName(String value) { for (ClassModel obj : this) { obj.withName(value); } return this; }
public ClassModelSet withoutClasses(Clazz value) { for (ClassModel obj : this) { obj.without(value); } return this; }
public StringList getName() { StringList result = new StringList(); for (ClassModel obj : this) { result.add(obj.getName()); } return result; }
public ClazzSet getClasses() { ClazzSet result = new ClazzSet(); for (ClassModel obj : this) { result.addAll(obj.getClasses()); } return result; }
public EnumerationSet getEnumerations() { EnumerationSet result = new EnumerationSet(); for (ClassModel obj : this) { result.addAll(obj.getEnumerations()); } return result; }
@Override public String toString() { StringList stringList = new StringList(); for (ClassModel elem : this) { stringList.add(elem.toString()); } return "(" + stringList.concat(", ") + ")"; }
public ClassModelSet hasName(String lower, String upper) { ClassModelSet result = new ClassModelSet(); for (ClassModel obj : this) { if (lower.compareTo(obj.getName()) <= 0 && obj.getName().compareTo(upper) <= 0) { result.add(obj); } } return result; }
public ClassModelSet hasName(String value) { ClassModelSet result = new ClassModelSet(); for (ClassModel obj : this) { if (value.equals(obj.getName())) { result.add(obj); } } return result; }
public ClassModelSet hasEnumerations(Object value) { ObjectSet neighbors = new ObjectSet(); if (value instanceof Collection) { neighbors.addAll((Collection<?>) value); } else { neighbors.add(value); } ClassModelSet answer = new ClassModelSet(); for (ClassModel obj : this) { if (!Collections.disjoint(neighbors, obj.getEnumerations())) { answer.add(obj); } } return answer; }