org.cyberneko.html.filters

Class NamespaceBinder.NamespaceSupport

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 NamespaceBinder.NamespaceSupport.Entry[]fEntries
The entries.
protected int[]fLevels
The levels of the entries.
protected intfTop
Top of the levels list.
Constructor Summary
NamespaceSupport()
Default constructor.
Method Summary
booleandeclarePrefix(String prefix, String uri)
Declare prefix.
EnumerationgetAllPrefixes()
Get all prefixes.
StringgetDeclaredPrefixAt(int index)
Get declared prefix at.
intgetDeclaredPrefixCount()
Get declared prefix count.
NamespaceContextgetParentContext()
Get parent context.
StringgetPrefix(String uri)
Get prefix.
StringgetURI(String prefix)
Get URI.
voidpopContext()
Pop context.
voidpushContext()
Push context.
voidreset()
Reset.

Field Detail

fEntries

protected NamespaceBinder.NamespaceSupport.Entry[] fEntries
The entries.

fLevels

protected int[] fLevels
The levels of the entries.

fTop

protected int fTop
Top of the levels list.

Constructor Detail

NamespaceSupport

public NamespaceSupport()
Default constructor.

Method Detail

declarePrefix

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

getAllPrefixes

public Enumeration getAllPrefixes()
Get all prefixes.

getDeclaredPrefixAt

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

getDeclaredPrefixCount

public int getDeclaredPrefixCount()
Get declared prefix count.

getParentContext

public NamespaceContext getParentContext()
Get parent context.

getPrefix

public String getPrefix(String uri)
Get prefix.

getURI

public String getURI(String prefix)
Get URI.

popContext

public void popContext()
Pop context.

pushContext

public void pushContext()
Push context.

reset

public void reset()
Reset.
(C) Copyright 2002-2005, Andy Clark. All rights reserved.