Class NamespaceLookup

  • All Implemented Interfaces:
    NamespaceContext

    public class NamespaceLookup
    extends Object
    implements NamespaceContext
    A resolver looking up the namespace in a map of provided namespaces and in a specific Document.
    • Field Detail

      • DEFAULT_VALUE

        protected static final String DEFAULT_VALUE
        The default value returned in case the map does not contain a key.
        See Also:
        Constant Field Values
      • sourceDocument

        protected final Document sourceDocument
        The document in which to lookup the namespace.
    • Constructor Detail

      • NamespaceLookup

        public NamespaceLookup​(Document document)
        Creates a new NamespaceContext looking up namespaces in the designated Document or additionally set namespaces.
        Parameters:
        document - The document in which to lookup the namespace.