Class XMLAssert.NodeBasedNamespaceContext

java.lang.Object
org.custommonkey.xmlunit.XMLAssert.NodeBasedNamespaceContext
All Implemented Interfaces:
NamespaceContext
Enclosing class:
XMLAssert

private static class XMLAssert.NodeBasedNamespaceContext extends Object implements NamespaceContext
  • Field Details

    • node

      private final Node node
  • Constructor Details

    • NodeBasedNamespaceContext

      NodeBasedNamespaceContext(Node n)
  • Method Details

    • getNamespaceURI

      public String getNamespaceURI(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 interface NamespaceContext
      Returns:
      null if the prefix is unknown.
    • getPrefixes

      public Iterator getPrefixes()
      Description copied from interface: NamespaceContext
      Get all prefixes of this context.
      Specified by:
      getPrefixes in interface NamespaceContext