|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supports the tracking of nested namespace contexts according the namespace 1.1 declaration. A newly created namespace context knows from the very beginning already two prefix declarations:
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. |
Method Detail |
public void pushContext(java.util.Collection aPrefixDeclarations)
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).
aPrefixDeclarations
- (optional). A collection of PrefixDeclaration
.public void popContext()
public java.util.Map getCurrentMapping()
public java.util.Collection getAddedPrefixDeclarations()
PrefixDeclaration
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |