org.cyberneko.html.filters

Class NamespaceBinder.NamespaceSupport

Enclosing Class:
NamespaceBinder
Implemented Interfaces:
NamespaceContext

public static class NamespaceBinder.NamespaceSupport
extends java.lang.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.

Constructor Summary

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.

Field Details

fEntries

protected org.cyberneko.html.filters.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 Details

NamespaceSupport

public NamespaceSupport()
Default constructor.

Method Details

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.