Class FixedNsContext

java.lang.Object
com.fasterxml.aalto.in.FixedNsContext
All Implemented Interfaces:
NamespaceContext

public final class FixedNsContext extends Object implements NamespaceContext
Non-transient implementation of NamespaceContext.
  • Field Details

    • EMPTY_CONTEXT

      public static final FixedNsContext EMPTY_CONTEXT
      We can share and reuse "no bindings" instance.
    • _lastDeclaration

      protected final NsDeclaration _lastDeclaration
      We will keep a reference to the last namespace declaration in effect at point when this instance was created. This is used for lazy invalidation of instances: if last declaration for an instance differs from the last seen by the reader, a new context must be created.
    • _declarationData

      protected final String[] _declarationData
      Array that contains prefix/namespace-uri pairs, ordered from the most recent declaration to older ones. Array is always exactly sized so there are no empty entries at the end.
    • _tmpDecl

      protected ArrayList<String> _tmpDecl
      Temporary List used for constructing compact namespace binding information that we will actually use.
  • Constructor Details

  • Method Details