Class NamespaceContextMap

  • All Implemented Interfaces:
    NamespaceContext

    public final class NamespaceContextMap
    extends Object
    implements NamespaceContext
    A class for namespace context management. It is used by XPath queries.
    • Constructor Detail

      • NamespaceContextMap

        public NamespaceContextMap()
        This is the default constructor
    • Method Detail

      • registerNamespace

        public boolean registerNamespace​(String prefix,
                                         String namespace)
        This method allows to register a namespace and associated prefix. If the prefix exists already it is replaced.
        Parameters:
        prefix - namespace prefix
        namespace - namespace
        Returns:
        true if this map did not already contain the specified element