Main Page   Packages   Namespace List   Class Hierarchy   Compound List   Compound Members  

NamespaceStack Class Reference

Inheritance diagram for NamespaceStack::

XMLOutputter::NamespaceStack List of all members.

Public Methods

 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.7
,
Date:
2002/01/08 09:17:10


Constructor & Destructor Documentation

NamespaceStack::NamespaceStack   [inline]
 

This creates the needed storage.


Member Function Documentation

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

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

Returns:
String - the popped namespace prefix.

void NamespaceStack::push Namespace    ns [inline]
 

This will add a new Namespace to those currently available.

Parameters:
ns  Namespace to add.

int NamespaceStack::size   [inline]
 

This returns the number of available namespaces.

Returns:
int - size of the namespace stack.

String 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 Sat Mar 30 18:53:04 2002 for JDOM by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001