Class XMLAssert.NodeBasedNamespaceContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.w3c.dom.Node node  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • node

        private final org.w3c.dom.Node node
    • Constructor Detail

      • NodeBasedNamespaceContext

        NodeBasedNamespaceContext​(org.w3c.dom.Node n)
    • 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 interface NamespaceContext
        Returns:
        null if the prefix is unknown.