| java.lang.Object org.apache.xerces.util.NamespaceSupport org.apache.xerces.xinclude.MultipleScopeNamespaceSupport
All known Subclasses: org.apache.xerces.xinclude.XIncludeNamespaceSupport,
MultipleScopeNamespaceSupport | public class MultipleScopeNamespaceSupport extends NamespaceSupport (Code) | | 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.
author: Peter McCracken, IBM version: $Id: MultipleScopeNamespaceSupport.java 447243 2006-09-18 05:15:27Z mrglavas $ |
fCurrentScope | protected int fCurrentScope(Code) | | |
fScope | protected int[] fScope(Code) | | |
MultipleScopeNamespaceSupport | public MultipleScopeNamespaceSupport()(Code) | | |
MultipleScopeNamespaceSupport | public MultipleScopeNamespaceSupport(NamespaceContext context)(Code) | | Parameters: context - |
getScopeForContext | public int getScopeForContext(int context)(Code) | | |
popScope | public void popScope()(Code) | | Pops the current scope. The namespace bindings from the new current scope
are then used for searching for namespaces and prefixes.
|
pushScope | public void pushScope()(Code) | | Begins a new scope. None of the previous namespace bindings will be used,
until the new scope is popped with popScope()
|
reset | public void reset()(Code) | | Only resets the current scope -- all namespaces defined in lower scopes
remain valid after a call to reset.
|
|
|