Main Page | Class Hierarchy | Class List | Class Members

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

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

Package Functions

 NamespaceStack ()

Detailed Description

A non-public utility class used by both XMLOutputter and SAXOutputter to manage namespaces in a JDOM Document during output.

Version:
Revision
1.13
,
Date
2004/02/06 09:28:32
Author:
Elliotte Rusty Harolde

Fred Trimble

Brett McLaughlin


Constructor & Destructor Documentation

org::jdom::output::NamespaceStack::NamespaceStack  )  [inline, package]
 

This creates the needed storage.


Member Function Documentation

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::pop  )  [inline]
 

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

Returns:
String - the popped namespace prefix.

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

This will add a new Namespace to those currently available.

Parameters:
ns Namespace to add.

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::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 Thu Dec 9 10:42:05 2004 for JDOM by  doxygen 1.3.9.1