|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.parser.NamespaceContext
Constructor Summary | |
NamespaceContext()
|
Method Summary | |
java.util.Collection |
getAddedPrefixDeclarations()
Gets the prefix declarations that were added when the current context was pushed. |
java.util.Map |
getCurrentMapping()
Gets the prefix to namespace mapping of the current context. |
void |
popContext()
Ends the current context. |
void |
pushContext(java.util.Collection aPrefixDeclarations)
Starts a new context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamespaceContext()
Method Detail |
public java.util.Map getCurrentMapping()
INamespaceContext
getCurrentMapping
in interface INamespaceContext
public java.util.Collection getAddedPrefixDeclarations()
INamespaceContext
getAddedPrefixDeclarations
in interface INamespaceContext
PrefixDeclaration
.public void popContext()
INamespaceContext
popContext
in interface INamespaceContext
public void pushContext(java.util.Collection aPrefixDeclarations)
INamespaceContext
If an added prefix declaration has the empty string as its namespace then the prefix declaration for that prefix is removed if the prefix itself is not an empty string (cf. the namespace 1.1 specification). A prefix declaration in which the namespace and the prefix are empty strings is treated like a normal prefix declaration. In other words, the empty string prefix is mapped to the empty string namespace (like it is in a newly created namespace context).
pushContext
in interface INamespaceContext
aPrefixDeclarations
- (optional). A collection of PrefixDeclaration
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |