Package org.custommonkey.xmlunit
Class XMLAssert.NodeBasedNamespaceContext
- java.lang.Object
-
- org.custommonkey.xmlunit.XMLAssert.NodeBasedNamespaceContext
-
- All Implemented Interfaces:
NamespaceContext
- Enclosing class:
- XMLAssert
private static class XMLAssert.NodeBasedNamespaceContext extends java.lang.Object implements NamespaceContext
-
-
Field Summary
Fields Modifier and Type Field Description private org.w3c.dom.Node
node
-
Constructor Summary
Constructors Constructor Description NodeBasedNamespaceContext(org.w3c.dom.Node n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNamespaceURI(java.lang.String prefix)
Obtain the URI for a given prefix.java.util.Iterator
getPrefixes()
Get all prefixes of this context.
-
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
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
public java.util.Iterator getPrefixes()
Description copied from interface:NamespaceContext
Get all prefixes of this context.- Specified by:
getPrefixes
in interfaceNamespaceContext
-
-