FileDocCategorySizeDatePackage
NSInfo.javaAPI DocJava SE 6 API3236Tue Jun 10 00:23:10 BST 2008com.sun.org.apache.xml.internal.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.
xsl.usage
internal

Fields Summary
public String
m_namespace
The namespace URI
public boolean
m_hasXMLNSAttrs
Flag indicating whether this node has an XMLNS attribute
public boolean
m_hasProcessedNS
Flag indicating whether namespaces have been processed for this node
public int
m_ancestorHasXMLNSAttrs
Flag indicating whether one of this node's ancestor has an XMLNS attribute
public static final int
ANCESTORXMLNSUNPROCESSED
Constant for ancestors XMLNS atributes not processed
public static final int
ANCESTORHASXMLNS
Constant indicating an ancestor has an XMLNS attribute
public static final int
ANCESTORNOXMLNS
Constant indicating ancestors don't have an XMLNS attribute
Constructors Summary
public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs)
Constructor NSInfo

param
hasProcessedNS Flag indicating whether namespaces have been processed for this node
param
hasXMLNSAttrs Flag indicating whether this node has XMLNS attributes.


    m_hasProcessedNS = hasProcessedNS;
    m_hasXMLNSAttrs = hasXMLNSAttrs;
    m_namespace = null;
    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;
  
public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs, int ancestorHasXMLNSAttrs)
Constructor NSInfo

param
hasProcessedNS Flag indicating whether namespaces have been processed for this node
param
hasXMLNSAttrs Flag indicating whether this node has XMLNS attributes.
param
ancestorHasXMLNSAttrs Flag indicating whether one of this node's ancestor has XMLNS attributes.


    m_hasProcessedNS = hasProcessedNS;
    m_hasXMLNSAttrs = hasXMLNSAttrs;
    m_ancestorHasXMLNSAttrs = ancestorHasXMLNSAttrs;
    m_namespace = null;
  
public NSInfo(String namespace, boolean hasXMLNSAttrs)
Constructor NSInfo

param
namespace The namespace URI
param
hasXMLNSAttrs Flag indicating whether this node has XMLNS attributes.


    m_hasProcessedNS = true;
    m_hasXMLNSAttrs = hasXMLNSAttrs;
    m_namespace = namespace;
    m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED;
  
Methods Summary