in xmlschema-walker/src/main/java/org/apache/ws/commons/schema/walker/XmlSchemaRestriction.java [183:205]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
XmlSchemaRestriction other = (XmlSchemaRestriction)obj;
if (type != other.type)
return false;
if ((type != null) && ((type == Type.ENUMERATION) || (type == Type.PATTERN))) {
if (isFixed != other.isFixed)
return false;
if (value == null) {
if (other.value != null)
return false;
} else if (!value.equals(other.value))
return false;
}
return true;
}