Ejemplo n.º 1
0
  public ClassModelSet withoutEnumerations(Enumeration value) {
    for (ClassModel obj : this) {
      obj.withoutEnumerations(value);
    }

    return this;
  }
Ejemplo n.º 2
0
  public ClassModelSet withName(String value) {
    for (ClassModel obj : this) {
      obj.withName(value);
    }

    return this;
  }
Ejemplo n.º 3
0
  public ClassModelSet withoutClasses(Clazz value) {
    for (ClassModel obj : this) {
      obj.without(value);
    }

    return this;
  }
Ejemplo n.º 4
0
  public StringList getName() {
    StringList result = new StringList();

    for (ClassModel obj : this) {
      result.add(obj.getName());
    }

    return result;
  }
Ejemplo n.º 5
0
  public ClazzSet getClasses() {
    ClazzSet result = new ClazzSet();

    for (ClassModel obj : this) {
      result.addAll(obj.getClasses());
    }

    return result;
  }
Ejemplo n.º 6
0
  public EnumerationSet getEnumerations() {
    EnumerationSet result = new EnumerationSet();

    for (ClassModel obj : this) {
      result.addAll(obj.getEnumerations());
    }

    return result;
  }
Ejemplo n.º 7
0
  @Override
  public String toString() {
    StringList stringList = new StringList();

    for (ClassModel elem : this) {
      stringList.add(elem.toString());
    }

    return "(" + stringList.concat(", ") + ")";
  }
Ejemplo n.º 8
0
  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;
  }
Ejemplo n.º 9
0
  public ClassModelSet hasName(String value) {
    ClassModelSet result = new ClassModelSet();

    for (ClassModel obj : this) {
      if (value.equals(obj.getName())) {
        result.add(obj);
      }
    }

    return result;
  }
Ejemplo n.º 10
0
  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;
  }