Package org.apache.xml.utils
Class NSInfo
- java.lang.Object
-
- org.apache.xml.utils.NSInfo
-
public class NSInfo extends java.lang.Object
This class holds information about the namespace info of a node. It is used to optimize namespace lookup in a generic DOM.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANCESTORHASXMLNS
Constant indicating an ancestor has an XMLNS attributestatic int
ANCESTORNOXMLNS
Constant indicating ancestors don't have an XMLNS attributestatic int
ANCESTORXMLNSUNPROCESSED
Constant for ancestors XMLNS atributes not processedint
m_ancestorHasXMLNSAttrs
Flag indicating whether one of this node's ancestor has an XMLNS attributeboolean
m_hasProcessedNS
Flag indicating whether namespaces have been processed for this nodeboolean
m_hasXMLNSAttrs
Flag indicating whether this node has an XMLNS attributejava.lang.String
m_namespace
The namespace URI
-
Constructor Summary
Constructors Constructor Description NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs)
Constructor NSInfoNSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs, int ancestorHasXMLNSAttrs)
Constructor NSInfoNSInfo(java.lang.String namespace, boolean hasXMLNSAttrs)
Constructor NSInfo
-
-
-
Field Detail
-
m_namespace
public java.lang.String m_namespace
The namespace URI
-
m_hasXMLNSAttrs
public boolean m_hasXMLNSAttrs
Flag indicating whether this node has an XMLNS attribute
-
m_hasProcessedNS
public boolean m_hasProcessedNS
Flag indicating whether namespaces have been processed for this node
-
m_ancestorHasXMLNSAttrs
public int m_ancestorHasXMLNSAttrs
Flag indicating whether one of this node's ancestor has an XMLNS attribute
-
ANCESTORXMLNSUNPROCESSED
public static final int ANCESTORXMLNSUNPROCESSED
Constant for ancestors XMLNS atributes not processed- See Also:
- Constant Field Values
-
ANCESTORHASXMLNS
public static final int ANCESTORHASXMLNS
Constant indicating an ancestor has an XMLNS attribute- See Also:
- Constant Field Values
-
ANCESTORNOXMLNS
public static final int ANCESTORNOXMLNS
Constant indicating ancestors don't have an XMLNS attribute- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NSInfo
public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs)
Constructor NSInfo- Parameters:
hasProcessedNS
- Flag indicating whether namespaces have been processed for this nodehasXMLNSAttrs
- 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 nodehasXMLNSAttrs
- Flag indicating whether this node has XMLNS attributes.ancestorHasXMLNSAttrs
- Flag indicating whether one of this node's ancestor has XMLNS attributes.
-
NSInfo
public NSInfo(java.lang.String namespace, boolean hasXMLNSAttrs)
Constructor NSInfo- Parameters:
namespace
- The namespace URIhasXMLNSAttrs
- Flag indicating whether this node has XMLNS attributes.
-
-