Class NamespaceLookup

java.lang.Object
de.aristaflow.adept2.util.xml.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 Details

    • pref2Ns

      protected final ConcurrentMap<String,String> pref2Ns
      Additional namespaces in a map indexed by the corresponding prefix. This takes precedence over sourceDocument.
    • ns2Pref

      protected final ConcurrentMap<String,String> ns2Pref
      Additional prefixes in a map indexed by the corresponding namespace. This is the reverse mapping of pref2Ns. It takes precedence over sourceDocument.
    • sourceDocument

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

    • 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.
  • Method Details