Inheritance diagram for org::jdom::output::NamespaceStack:

Public Member Functions | |
| NamespaceStack () | |
| void | push (Namespace ns) |
| String | pop () |
| int | size () |
| String | getURI (String prefix) |
| String | toString () |
NamespaceStack is a helper class used by both XMLOutputter and SAXOutputter to manage namespaces in a JDOM Document during output.
| org::jdom::output::NamespaceStack::NamespaceStack | ( | ) | [inline] |
This creates the needed storage.
| void org::jdom::output::NamespaceStack::push | ( | Namespace | ns | ) | [inline] |
| String org::jdom::output::NamespaceStack::pop | ( | ) | [inline] |
This will remove the topmost (most recently added) Namespace, and return its prefix.
String - the popped namespace prefix. | int org::jdom::output::NamespaceStack::size | ( | ) | [inline] |
This returns the number of available namespaces.
int - size of the namespace stack. | String org::jdom::output::NamespaceStack::getURI | ( | String | prefix | ) | [inline] |
Given a prefix, this will return the namespace URI most rencently (topmost) associated with that prefix.
| prefix | String namespace prefix. |
String - the namespace URI for that prefix. | String org::jdom::output::NamespaceStack::toString | ( | ) | [inline] |
This will print out the size and current stack, from the most recently added Namespace to the "oldest," all to System.out.
1.5.1