|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.utils.NamespacesScope
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.
Nested Class Summary | |
static interface |
NamespacesScope.NamespacesHandler
NamespacesHandler allows a client to be notified when namespace scopes change |
Constructor Summary | |
NamespacesScope()
|
|
NamespacesScope(NamespacesScope.NamespacesHandler handler)
|
|
NamespacesScope(NamespacesScope.NamespacesHandler handler,
int elemDepth,
int[][] map)
|
Method Summary | |
Object |
clone()
|
void |
decreaseDepth()
Remove a namespace mappng |
int |
getNamespaceForPrefix(int prefix)
retreive the namespace URI for a prefix |
void |
increaseDepth()
Add a new namespace mapping |
void |
setNamespaceForPrefix(int prefix,
int namespace)
set the namespace URI for given prefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamespacesScope()
public NamespacesScope(NamespacesScope.NamespacesHandler handler)
public NamespacesScope(NamespacesScope.NamespacesHandler handler, int elemDepth, int[][] map)
Method Detail |
public void setNamespaceForPrefix(int prefix, int namespace) throws Exception
prefix
- the StringPool handler of the prefixnamespace
- the StringPool handle of the namespace URI
Exception
public int getNamespaceForPrefix(int prefix)
prefix
- the StringPool handle of the prefixpublic void increaseDepth() throws Exception
Exception
public void decreaseDepth() throws Exception
Exception
public Object clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |