org.cyberneko.html.filters
Class NamespaceBinder.NamespaceSupport

java.lang.Object
  extended byorg.cyberneko.html.filters.NamespaceBinder.NamespaceSupport
All Implemented Interfaces:
NamespaceContext
Enclosing class:
NamespaceBinder

public static class NamespaceBinder.NamespaceSupport
extends Object
implements NamespaceContext

This namespace context object implements the old and new XNI NamespaceContext interface methods so that it can be used across all versions of Xerces2.


Field Summary
protected  org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport.Entry[] fEntries
          The entries.
protected  int[] fLevels
          The levels of the entries.
protected  int fTop
          Top of the levels list.
 
Fields inherited from interface org.apache.xerces.xni.NamespaceContext
XML_URI, XMLNS_URI
 
Constructor Summary
NamespaceBinder.NamespaceSupport()
          Default constructor.
 
Method Summary
 boolean declarePrefix(String prefix, String uri)
          Declare prefix.
 Enumeration getAllPrefixes()
          Get all prefixes.
 String getDeclaredPrefixAt(int index)
          Get declared prefix at.
 int getDeclaredPrefixCount()
          Get declared prefix count.
 NamespaceContext getParentContext()
          Get parent context.
 String getPrefix(String uri)
          Get prefix.
 String getURI(String prefix)
          Get URI.
 void popContext()
          Pop context.
 void pushContext()
          Push context.
 void reset()
          Reset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fTop

protected int fTop
Top of the levels list.


fLevels

protected int[] fLevels
The levels of the entries.


fEntries

protected org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport.Entry[] fEntries
The entries.

Constructor Detail

NamespaceBinder.NamespaceSupport

public NamespaceBinder.NamespaceSupport()
Default constructor.

Method Detail

getURI

public String getURI(String prefix)
Get URI.

Specified by:
getURI in interface NamespaceContext

getDeclaredPrefixCount

public int getDeclaredPrefixCount()
Get declared prefix count.

Specified by:
getDeclaredPrefixCount in interface NamespaceContext

getDeclaredPrefixAt

public String getDeclaredPrefixAt(int index)
Get declared prefix at.

Specified by:
getDeclaredPrefixAt in interface NamespaceContext

getParentContext

public NamespaceContext getParentContext()
Get parent context.


reset

public void reset()
Reset.

Specified by:
reset in interface NamespaceContext

pushContext

public void pushContext()
Push context.

Specified by:
pushContext in interface NamespaceContext

popContext

public void popContext()
Pop context.

Specified by:
popContext in interface NamespaceContext

declarePrefix

public boolean declarePrefix(String prefix,
                             String uri)
Declare prefix.

Specified by:
declarePrefix in interface NamespaceContext

getPrefix

public String getPrefix(String uri)
Get prefix.

Specified by:
getPrefix in interface NamespaceContext

getAllPrefixes

public Enumeration getAllPrefixes()
Get all prefixes.

Specified by:
getAllPrefixes in interface NamespaceContext


(C) Copyright 2002-2004, Andy Clark. All rights reserved.