Ejemplo n.º 1
0
 @Override
 public String toString() {
   return DatamodelUtils.toStringAttribute(this, null);
 }
Ejemplo n.º 2
0
 @Override
 public boolean equals(Object obj) {
   return DatamodelUtils.equalAttributes(this, obj);
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 @Override
 public String getValueType() {
   return DatamodelUtils.getValueType(attributeValue);
 }