Class ElementNamespaceContext

  • All Implemented Interfaces:
    NamespaceContext

    public class ElementNamespaceContext
    extends java.lang.Object
    implements NamespaceContext

    A NamespaceContext which gets it's mappings from an Element in a JDOM tree.

    It currently DOES NOT WORK

    Author:
    bob mcwhirter (bob @ werken.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      ElementNamespaceContext​(org.jdom.Element element)
      Construct the NamespaceContext from a JDOM Element
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String translateNamespacePrefix​(java.lang.String prefix)
      Translate a namespace prefix into a URI Translate the prefix used in a component of an XPath into its expanded namespace URI.
      • Methods inherited from class java.lang.Object

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

      • ElementNamespaceContext

        public ElementNamespaceContext​(org.jdom.Element element)
        Construct the NamespaceContext from a JDOM Element
        Parameters:
        element - The JDOM element to use for prefix->nsURI mapping