Class NSInfo

java.lang.Object
org.apache.xml.utils.NSInfo

public class NSInfo
extends Object
This class holds information about the namespace info of a node. It is used to optimize namespace lookup in a generic DOM.
  • Field Details

  • Constructor Details

    • NSInfo

      public NSInfo​(boolean hasProcessedNS, boolean hasXMLNSAttrs)
      Constructor NSInfo
      Parameters:
      hasProcessedNS - Flag indicating whether namespaces have been processed for this node
      hasXMLNSAttrs - Flag indicating whether this node has XMLNS attributes.
    • NSInfo

      public NSInfo​(boolean hasProcessedNS, boolean hasXMLNSAttrs, int ancestorHasXMLNSAttrs)
      Constructor NSInfo
      Parameters:
      hasProcessedNS - Flag indicating whether namespaces have been processed for this node
      hasXMLNSAttrs - Flag indicating whether this node has XMLNS attributes.
      ancestorHasXMLNSAttrs - Flag indicating whether one of this node's ancestor has XMLNS attributes.
    • NSInfo

      public NSInfo​(String namespace, boolean hasXMLNSAttrs)
      Constructor NSInfo
      Parameters:
      namespace - The namespace URI
      hasXMLNSAttrs - Flag indicating whether this node has XMLNS attributes.