Exemple #1
0
  public ClassModelSet withoutEnumerations(Enumeration value) {
    for (ClassModel obj : this) {
      obj.withoutEnumerations(value);
    }

    return this;
  }
Exemple #2
0
  public ClassModelSet withName(String value) {
    for (ClassModel obj : this) {
      obj.withName(value);
    }

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

    return this;
  }
Exemple #4
0
  public StringList getName() {
    StringList result = new StringList();

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

    return result;
  }
Exemple #5
0
  public ClazzSet getClasses() {
    ClazzSet result = new ClazzSet();

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

    return result;
  }
Exemple #6
0
  public EnumerationSet getEnumerations() {
    EnumerationSet result = new EnumerationSet();

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

    return result;
  }
Exemple #7
0
  @Override
  public String toString() {
    StringList stringList = new StringList();

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

    return "(" + stringList.concat(", ") + ")";
  }
Exemple #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;
  }
Exemple #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;
  }
Exemple #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;
  }