@Override public String toString() { return DatamodelUtils.toStringAttribute(this, null); }
@Override public boolean equals(Object obj) { return DatamodelUtils.equalAttributes(this, obj); }
/** * This method compares this attribute to another. It is required by the Comparable and the * Attribute-Interface. It compares in multiple steps 1) lexicographic order of identification 2) * lexicographic order of value 3) sort by subattributes 3a) attributes are equal iff their * subattribute lists are equal 3b) the attribute with more subattributes comes first 3c) the * first difference in equal-length subattribute lists decides */ @Override public int compareTo(Attribute arg0) { return DatamodelUtils.compareAttributes(this, arg0); }
@Override public String getValueType() { return DatamodelUtils.getValueType(attributeValue); }