com.caucho.xml2
Class NamespaceContextImpl

java.lang.Object
  extended by com.caucho.xml2.NamespaceContextImpl

public class NamespaceContextImpl
extends java.lang.Object

Maintains a stack of namespace contexts


Method Summary
 java.lang.String declare(java.lang.String uri)
          declares a new namespace prefix in the current context; the auto-allocated prefix is returned
 void declare(java.lang.String prefix, java.lang.String uri)
          declares a new namespace prefix in the current context
 int getDepth()
           
 java.lang.String getNamespaceURI(java.lang.String prefix)
           
 int getNumDecls()
           
 java.lang.String getPrefix(int i)
           
 java.util.Iterator getPrefixes(java.lang.String uri)
           
 java.lang.String getUri(int i)
           
 java.lang.String getUri(java.lang.String prefix)
          looks up the prefix, returns the uri it corresponds to
 void pop(com.caucho.xml2.SaxIntern.Entry entry)
          deletes the current context and enters its parent
 void push(com.caucho.xml2.SaxIntern.Entry entry)
          Creates a new subcontext and enters it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

push

public void push(com.caucho.xml2.SaxIntern.Entry entry)
Creates a new subcontext and enters it


pop

public void pop(com.caucho.xml2.SaxIntern.Entry entry)
deletes the current context and enters its parent


getDepth

public int getDepth()

declare

public void declare(java.lang.String prefix,
                    java.lang.String uri)
declares a new namespace prefix in the current context


declare

public java.lang.String declare(java.lang.String uri)
declares a new namespace prefix in the current context; the auto-allocated prefix is returned


getUri

public java.lang.String getUri(java.lang.String prefix)
looks up the prefix, returns the uri it corresponds to


getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String uri)

getUri

public java.lang.String getUri(int i)

getPrefix

public java.lang.String getPrefix(int i)

getNumDecls

public int getNumDecls()