com.caucho.xml.stream
Class NamespaceReaderContext

java.lang.Object
  extended by com.caucho.xml.stream.NamespaceContextImpl
      extended by com.caucho.xml.stream.NamespaceReaderContext
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext

public class NamespaceReaderContext
extends NamespaceContextImpl

Maintains a stack of namespace contexts


Field Summary
 
Fields inherited from class com.caucho.xml.stream.NamespaceContextImpl
_stack, _version, L
 
Constructor Summary
NamespaceReaderContext()
           
 
Method Summary
 void declare(java.lang.String prefix, java.lang.String uri)
          declares a new namespace prefix in the current context
 java.lang.String getNamespaceURI(java.lang.String prefix)
           
 int getNumDecls()
           
 java.lang.String getPrefix(int i)
           
 java.lang.String getPrefix(java.lang.String uri)
           
 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 print()
           
protected  void remove(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class com.caucho.xml.stream.NamespaceContextImpl
getDepth, getElementName, pop, push, setElementName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceReaderContext

public NamespaceReaderContext()
Method Detail

remove

protected void remove(java.lang.String prefix,
                      java.lang.String uri)
Specified by:
remove in class NamespaceContextImpl

declare

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

Specified by:
declare in class NamespaceContextImpl

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)

getPrefix

public java.lang.String getPrefix(java.lang.String uri)

getPrefixes

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

getNumDecls

public int getNumDecls()

getUri

public java.lang.String getUri(int i)

getPrefix

public java.lang.String getPrefix(int i)

print

public void print()