Package org.apache.xml.utils
Class NSInfo
java.lang.Object
org.apache.xml.utils.NSInfo
This class holds information about the namespace info
of a node. It is used to optimize namespace lookup in
a generic DOM.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant indicating an ancestor has an XMLNS attributestatic final intConstant indicating ancestors don't have an XMLNS attributestatic final intConstant for ancestors XMLNS atributes not processedintFlag indicating whether one of this node's ancestor has an XMLNS attributebooleanFlag indicating whether namespaces have been processed for this nodebooleanFlag indicating whether this node has an XMLNS attributeThe namespace URI -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_namespace
The namespace URI -
m_hasXMLNSAttrs
public boolean m_hasXMLNSAttrsFlag indicating whether this node has an XMLNS attribute -
m_hasProcessedNS
public boolean m_hasProcessedNSFlag indicating whether namespaces have been processed for this node -
m_ancestorHasXMLNSAttrs
public int m_ancestorHasXMLNSAttrsFlag indicating whether one of this node's ancestor has an XMLNS attribute -
ANCESTORXMLNSUNPROCESSED
public static final int ANCESTORXMLNSUNPROCESSEDConstant for ancestors XMLNS atributes not processed- See Also:
-
ANCESTORHASXMLNS
public static final int ANCESTORHASXMLNSConstant indicating an ancestor has an XMLNS attribute- See Also:
-
ANCESTORNOXMLNS
public static final int ANCESTORNOXMLNSConstant indicating ancestors don't have an XMLNS attribute- See Also:
-
-
Constructor Details
-
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
Constructor NSInfo- Parameters:
namespace- The namespace URIhasXMLNSAttrs- Flag indicating whether this node has XMLNS attributes.
-