com.simonstl.common
Interface NamespaceStackI

All Known Subinterfaces:
ContextI
All Known Implementing Classes:
Context, LoudContext, NSContext

public interface NamespaceStackI

Version:
0.02 10 December 2002
Author:
Simon St.Laurent

Method Summary
 void declarePrefix(java.lang.String prefix, java.lang.String URI)
          Accepts a namespace declaration mapping a prefix to a URI.
 java.lang.String getPrefix(java.lang.String URI)
          Returns a prefix which currently maps to a particular URI.
 java.lang.String getUri(java.lang.String prefix)
          Returns the URI which currently maps to a particular prefix.
 void popLevel()
          Pops the element level up one to undeclare namespaces whose scope is done.
 void pushLevel()
          Pushes the element level one deeper for namespace-nesting.
 void reset()
          clear everything in the namespace stack
 

Method Detail

declarePrefix

public void declarePrefix(java.lang.String prefix,
                          java.lang.String URI)
Accepts a namespace declaration mapping a prefix to a URI.


getUri

public java.lang.String getUri(java.lang.String prefix)
Returns the URI which currently maps to a particular prefix.


getPrefix

public java.lang.String getPrefix(java.lang.String URI)
Returns a prefix which currently maps to a particular URI. There can be multiple prefixes for a particular URI, and this method only promises to return one of them.


pushLevel

public void pushLevel()
Pushes the element level one deeper for namespace-nesting.


popLevel

public void popLevel()
Pops the element level up one to undeclare namespaces whose scope is done.


reset

public void reset()
clear everything in the namespace stack