Diagnosability - Add Attribute#toString() for more informative outputs

This commit is contained in:
Oleg Nenashev 2018-02-06 14:54:27 +01:00 committed by Nicolas De loof
parent 981db2b37a
commit 541880bdba
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ public class Attribute<T> {
this.type = type;
}
@Override
public String toString() {
return String.format("%s(class: %s, multiple: %s)", name, type, multiple);
}
public String getName() {
return preferredName != null ? preferredName : name;
}