&& 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 {
return "[" + (namespace == null ? "" : (namespace + "|")) + localName + constraint + "]";
}
}