Package org.jvnet.staxex.util
Class DOMStreamReader.Scope
- java.lang.Object
-
- org.jvnet.staxex.util.DOMStreamReader.Scope
-
- Enclosing class:
- DOMStreamReader
protected static final class DOMStreamReader.Scope extends java.lang.Object
Namespace declarations on one element. Instances are reused.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) FinalArrayList<java.lang.String>
additionalNamespaces
Additional namespace declarations obtained as a result of "fixing" DOM tree, which were not part of the original DOM tree.(package private) FinalArrayList<org.w3c.dom.Attr>
currentNamespaces
List of namespace declarations extracted from_namedNodeMap
(package private) DOMStreamReader.Scope
parent
Scope for the parent element.
-
Constructor Summary
Constructors Constructor Description Scope(DOMStreamReader.Scope parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getNamespaceCount()
(package private) java.lang.String
getNamespacePrefix(int index)
(package private) java.lang.String
getNamespaceURI(int index)
(package private) java.lang.String
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI bound by the given prefix.(package private) java.lang.String
getPrefix(java.lang.String nsUri)
Returns the prefix bound to the given URI, or null.(package private) void
reset()
-
-
-
Field Detail
-
parent
final DOMStreamReader.Scope parent
Scope for the parent element.
-
currentNamespaces
final FinalArrayList<org.w3c.dom.Attr> currentNamespaces
List of namespace declarations extracted from_namedNodeMap
-
additionalNamespaces
final FinalArrayList<java.lang.String> additionalNamespaces
Additional namespace declarations obtained as a result of "fixing" DOM tree, which were not part of the original DOM tree. One entry occupies two spaces (prefix followed by URI.)
-
-
Constructor Detail
-
Scope
Scope(DOMStreamReader.Scope parent)
-
-
Method Detail
-
reset
void reset()
-
getNamespaceCount
int getNamespaceCount()
-
getNamespacePrefix
java.lang.String getNamespacePrefix(int index)
-
getNamespaceURI
java.lang.String getNamespaceURI(int index)
-
getPrefix
java.lang.String getPrefix(java.lang.String nsUri)
Returns the prefix bound to the given URI, or null. This method recurses to the parent.
-
getNamespaceURI
java.lang.String getNamespaceURI(java.lang.String prefix)
Returns the namespace URI bound by the given prefix.- Parameters:
prefix
- Prefix to look up.
-
-