Example #1
0
  @Override
  public void removeSubattribute(String attributeIdentification) {
    Attribute toDelete = null;

    if (attributeIdentification != null) {
      for (Attribute attribute : subattributes) {
        if (attributeIdentification.equals(attribute.getIdentification())) {
          toDelete = attribute;
          break;
        }
      }
    }

    if (toDelete != null) {
      removeSubattribute(toDelete);
    }
  }