public class URIOrStringIdentifier extends java.lang.Object
Constructor and Description |
---|
URIOrStringIdentifier(java.lang.String stringRepresentation,
javax.xml.namespace.QName uri) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsStringOrURI(URIOrStringIdentifier other)
Tests whether this and the other object have an equal string representation or an equal URI
or both.
|
java.lang.String |
getStringRepresentation() |
javax.xml.namespace.QName |
getURI() |
int |
hashCode() |
java.lang.String |
toString() |
public URIOrStringIdentifier(java.lang.String stringRepresentation, javax.xml.namespace.QName uri)
public java.lang.String getStringRepresentation()
public javax.xml.namespace.QName getURI()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsStringOrURI(URIOrStringIdentifier other)
Note that both objects having null
for their string representations or URIs
is not considered as equal by this method. (This is a different behavior as in
equals(Object)
.)
other
- the instance to be comparedtrue
if the condition above is fulfilled or false
otherwise