Package org.custommonkey.xmlunit
Class QualifiedName
java.lang.Object
org.custommonkey.xmlunit.QualifiedName
Since javax.xml.namespace.QName is not present prior to Java5, this
is XMLUnit's own abstraction.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQualifiedName
(String localName) QualifiedName
(String namespaceUri, String localName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private static QualifiedName
parsePrefixFormat
(String value, int colon, NamespaceContext ctx) private static QualifiedName
parseQNameToString
(String value, int closingBrace) toString()
Represents the QualifiedName as {NS-URI}LOCAL-NAME.static QualifiedName
Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.static QualifiedName
valueOf
(String value, NamespaceContext ctx) Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.
-
Field Details
-
namespaceUri
-
localName
-
-
Constructor Details
-
QualifiedName
-
QualifiedName
-
-
Method Details
-
getNamespaceURI
-
getLocalName
-
hashCode
public int hashCode() -
equals
-
valueOf
Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.When using the prefix-version the prefix must be defined inside the current NamespaceContext.
-
toString
Represents the QualifiedName as {NS-URI}LOCAL-NAME.If the NS-URI is equal to NULL_NS_URI only the local name is returned.
-
valueOf
Parses strings of the form "{NS-URI}LOCAL-NAME" or "prefix:localName" as QualifiedNames.When using the prefix-version the prefix must be defined inside the NamespaceContext given as argument.
-
parseQNameToString
-
parsePrefixFormat
-