|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ajax4jsf.xml.serializer.NamespaceMappings
public class NamespaceMappings
This class keeps track of the currently defined namespaces. Conceptually the prefix/uri/depth triplets are pushed on a stack pushed on a stack. The depth indicates the nesting depth of the element for which the mapping was made.
For example:
When the
Constructor Summary | |
---|---|
NamespaceMappings()
Default constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
This method makes a clone of this object. |
java.lang.String |
generateNextPrefix()
Generate a new namespace prefix ( ns0, ns1 ...) not used before |
java.lang.String |
lookupNamespace(java.lang.String prefix)
Use a namespace prefix to lookup a namespace URI. |
java.lang.String |
lookupPrefix(java.lang.String uri)
Given a namespace uri, and the namespaces mappings for the current element, return the current prefix for that uri. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespaceMappings()
Object.Object()
Method Detail |
---|
public java.lang.String lookupNamespace(java.lang.String prefix)
prefix
- String the prefix of the namespace
public java.lang.String lookupPrefix(java.lang.String uri)
uri
- the namespace URI to be search for
public java.lang.String generateNextPrefix()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |