org.apache.xerces.xinclude
Class MultipleScopeNamespaceSupport
java.lang.Object
|
+--org.apache.xerces.util.NamespaceSupport
|
+--org.apache.xerces.xinclude.MultipleScopeNamespaceSupport
- All Implemented Interfaces:
- org.apache.xerces.xni.NamespaceContext
- Direct Known Subclasses:
- XIncludeNamespaceSupport
- public class MultipleScopeNamespaceSupport
- extends NamespaceSupport
- Author:
- Peter McCracken, IBM
Fields inherited from interface org.apache.xerces.xni.NamespaceContext |
XML_URI, XMLNS_URI |
Method Summary |
java.util.Enumeration |
getAllPrefixes()
Return an enumeration of all prefixes whose declarations are active
in the current context. |
java.lang.String |
getPrefix(java.lang.String uri)
Look up a namespace URI and get one of the mapped prefix. |
java.lang.String |
getPrefix(java.lang.String uri,
int context)
|
java.lang.String |
getPrefix(java.lang.String uri,
int start,
int end)
|
int |
getScopeForContext(int context)
|
java.lang.String |
getURI(java.lang.String prefix)
Look up a prefix and get the currently-mapped Namespace URI. |
java.lang.String |
getURI(java.lang.String prefix,
int context)
|
java.lang.String |
getURI(java.lang.String prefix,
int start,
int end)
|
void |
popScope()
|
void |
pushScope()
|
void |
reset()
Reset this Namespace support object for reuse. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fScope
protected int[] fScope
fCurrentScope
protected int fCurrentScope
MultipleScopeNamespaceSupport
public MultipleScopeNamespaceSupport()
MultipleScopeNamespaceSupport
public MultipleScopeNamespaceSupport(org.apache.xerces.xni.NamespaceContext context)
- Parameters:
context
-
getAllPrefixes
public java.util.Enumeration getAllPrefixes()
- Description copied 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.
- Overrides:
getAllPrefixes
in class NamespaceSupport
- Following copied from class:
org.apache.xerces.util.NamespaceSupport
- See Also:
NamespaceContext.getAllPrefixes()
getScopeForContext
public int getScopeForContext(int context)
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
- Description copied from interface:
org.apache.xerces.xni.NamespaceContext
- 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).
- Overrides:
getPrefix
in class NamespaceSupport
- Following copied from class:
org.apache.xerces.util.NamespaceSupport
- See Also:
NamespaceContext.getPrefix(String)
getURI
public java.lang.String getURI(java.lang.String prefix)
- Description copied from interface:
org.apache.xerces.xni.NamespaceContext
- 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.
- Overrides:
getURI
in class NamespaceSupport
- Following copied from class:
org.apache.xerces.util.NamespaceSupport
- See Also:
NamespaceContext.getURI(String)
getPrefix
public java.lang.String getPrefix(java.lang.String uri,
int context)
getURI
public java.lang.String getURI(java.lang.String prefix,
int context)
getPrefix
public java.lang.String getPrefix(java.lang.String uri,
int start,
int end)
getURI
public java.lang.String getURI(java.lang.String prefix,
int start,
int end)
reset
public void reset()
- Description copied from interface:
org.apache.xerces.xni.NamespaceContext
- Reset this Namespace support object for reuse.
It is necessary to invoke this method before reusing the
Namespace support object for a new session.
Note that implementations of this method need to ensure that
the declaration of the prefixes "xmlns" and "xml" are available.
- Overrides:
reset
in class NamespaceSupport
- Following copied from class:
org.apache.xerces.util.NamespaceSupport
- See Also:
NamespaceContext.reset()
pushScope
public void pushScope()
popScope
public void popScope()
Copyright © 1999-2003 Apache XML Project. All Rights Reserved.