}
public String toString() {
if (namespace == null && localName.equals("class")
&& constraint instanceof ListContains) {
ListContains classConstraint = (ListContains) constraint;
return "." + classConstraint.getConstraintValue();
} else if (namespace == null && localName.equals("id")
&& constraint instanceof Equals) {
Equals equalsConstraint = (Equals) constraint;
return "#" + equalsConstraint.getConstraintValue();
} else {