java.lang.Object | ||
↳ | org.apache.xerces.util.NamespaceSupport | |
↳ | org.apache.xerces.xinclude.MultipleScopeNamespaceSupport |
Known Direct Subclasses |
This implementation of NamespaceContext has the ability to maintain multiple scopes of namespace/prefix bindings. This is useful in situations when it is not always appropriate for elements to inherit the namespace bindings of their ancestors (such as included elements in XInclude). When searching for a URI to match a prefix, or a prefix to match a URI, it is searched for in the current context, then the ancestors of the current context, up to the beginning of the current scope. Other scopes are not searched.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fCurrentScope | |||||||||||
fScope |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.util.NamespaceSupport
| |||||||||||
From interface
org.apache.xerces.xni.NamespaceContext
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return an enumeration of all prefixes whose declarations are active
in the current context.
| |||||||||||
Look up a namespace URI and get one of the mapped prefix.
| |||||||||||
Look up a prefix and get the currently-mapped Namespace URI.
| |||||||||||
Pops the current scope.
| |||||||||||
Begins a new scope.
| |||||||||||
Only resets the current scope -- all namespaces defined in lower scopes
remain valid after a call to reset.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.util.NamespaceSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.NamespaceContext
|
Return an enumeration of all prefixes whose declarations are active in the current context. This includes declarations from parent contexts that have not been overridden.
Look up a namespace URI and get one of the mapped prefix.
This method looks up the namespace URI in the current context. If more than one prefix is currently mapped to the same URI, this method will make an arbitrary selection If no mapping is found, this methods will continue lookup in the parent context(s).
uri | The namespace URI to look up. |
---|
Look up a prefix and get the currently-mapped Namespace URI.
This method looks up the prefix in the current context. If no mapping is found, this methods will continue lookup in the parent context(s). Use the empty string ("") for the default Namespace.
prefix | The prefix to look up. |
---|
Pops the current scope. The namespace bindings from the new current scope are then used for searching for namespaces and prefixes.
Begins a new scope. None of the previous namespace bindings will be used, until the new scope is popped with popScope()
Only resets the current scope -- all namespaces defined in lower scopes remain valid after a call to reset.