org::jdom::output::NamespaceStack Class Reference

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

org::jdom::output::XMLOutputter::NamespaceStack List of all members.

Public Member Functions

 NamespaceStack ()
void push (Namespace ns)
String pop ()
int size ()
String getURI (String prefix)
String toString ()

Detailed Description

NamespaceStack is a helper class used by both XMLOutputter and SAXOutputter to manage namespaces in a JDOM Document during output.

Author:
Elliotte Rusty Harolde

Fred Trimble

Brett McLaughlin

Version:
Revision
1.10
,
Date
2002/04/29 13:38:16


Constructor & Destructor Documentation

org::jdom::output::NamespaceStack::NamespaceStack (  )  [inline]

This creates the needed storage.


Member Function Documentation

void org::jdom::output::NamespaceStack::push ( Namespace  ns  )  [inline]

This will add a new Namespace to those currently available.

Parameters:
ns Namespace to add.

String org::jdom::output::NamespaceStack::pop (  )  [inline]

This will remove the topmost (most recently added) Namespace, and return its prefix.

Returns:
String - the popped namespace prefix.

int org::jdom::output::NamespaceStack::size (  )  [inline]

This returns the number of available namespaces.

Returns:
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.

Parameters:
prefix String namespace prefix.
Returns:
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.


The documentation for this class was generated from the following file:
Generated on Sun Nov 5 16:02:38 2006 for JDOM by  doxygen 1.5.1