org.apache.xerces.utils
Class NamespacesScope
java.lang.Object
|
+--org.apache.xerces.utils.NamespacesScope
- public class NamespacesScope
- extends java.lang.Object
NamespacesScope provides a data structure for mapping namespace prefixes
to their URI's. The mapping accurately reflects the scoping of namespaces
at a particular instant in time.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NamespacesScope
public NamespacesScope(NamespacesScope.NamespacesHandler handler)
setNamespaceForPrefix
public void setNamespaceForPrefix(int prefix,
int namespace)
throws java.lang.Exception
- set the namespace URI for given prefix
- Parameters:
prefix
- the StringPool handler of the prefixnamespace
- the StringPool handle of the namespace URI
getNamespaceForPrefix
public int getNamespaceForPrefix(int prefix)
- retreive the namespace URI for a prefix
- Parameters:
prefix
- the StringPool handle of the prefix
increaseDepth
public void increaseDepth()
throws java.lang.Exception
- Add a new namespace mapping
decreaseDepth
public void decreaseDepth()
throws java.lang.Exception
- Remove a namespace mappng
Copyright © 1999 Apache XML Project. All Rights Reserved.