示例#1
0
  @Override
  public List<Attribute> getSubattributesForPurpose(String attributePurpose) {
    ArrayList<Attribute> result = new ArrayList<Attribute>();

    for (Attribute attribute : subattributes) {
      if (attribute.getAttributePurpose().equals(attributePurpose)) {
        result.add(attribute);
      }
    }

    return result;
  }