| java.lang.Object org.jdom.output.NamespaceStack
NamespaceStack | class NamespaceStack (Code) | | A non-public utility class used by both
XMLOutputter and
SAXOutputter to manage namespaces in a JDOM Document
during output.
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:41 $ author: Elliotte Rusty Harolde author: Fred Trimble author: Brett McLaughlin |
Method Summary | |
public String | getURI(String prefix) Given a prefix, this will return the namespace URI most
rencently (topmost) associated with that prefix.
Parameters: prefix - String namespace prefix. | public String | pop() This will remove the topmost (most recently added)
Namespace , and return its prefix. | public void | push(Namespace ns) This will add a new
Namespace
to those currently available. | public int | size() This returns the number of available namespaces. | public String | toString() This will print out the size and current stack, from the
most recently added
Namespace to
the "oldest," all to System.out . |
NamespaceStack | NamespaceStack()(Code) | | This creates the needed storage.
|
getURI | public String getURI(String prefix)(Code) | | Given a prefix, this will return the namespace URI most
rencently (topmost) associated with that prefix.
Parameters: prefix - String namespace prefix. String - the namespace URI for that prefix. |
pop | public String pop()(Code) | | This will remove the topmost (most recently added)
Namespace , and return its prefix.
String - the popped namespace prefix. |
push | public void push(Namespace ns)(Code) | | This will add a new
Namespace
to those currently available.
Parameters: ns - Namespace to add. |
size | public int size()(Code) | | This returns the number of available namespaces.
int - size of the namespace stack. |
toString | public String toString()(Code) | | This will print out the size and current stack, from the
most recently added
Namespace to
the "oldest," all to System.out .
|
|
|