Package org.custommonkey.xmlunit
Class XMLAssert.NodeBasedNamespaceContext
java.lang.Object
org.custommonkey.xmlunit.XMLAssert.NodeBasedNamespaceContext
- All Implemented Interfaces:
NamespaceContext
- Enclosing class:
- XMLAssert
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) Obtain the URI for a given prefix.Get all prefixes of this context.
-
Field Details
-
node
-
-
Constructor Details
-
NodeBasedNamespaceContext
NodeBasedNamespaceContext(Node n)
-
-
Method Details
-
getNamespaceURI
Description copied from interface:NamespaceContext
Obtain the URI for a given prefix.Unlike the method in javax.xml.namespace.NamespaceContext doesn't have to implement any special handling for predefined prefix values.
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
- Returns:
- null if the prefix is unknown.
-
getPrefixes
Description copied from interface:NamespaceContext
Get all prefixes of this context.- Specified by:
getPrefixes
in interfaceNamespaceContext
-