org.apache.xerces.util
public class NamespaceSupport extends Object implements NamespaceContext
Version: $Id: NamespaceSupport.java,v 1.20 2005/06/23 05:39:17 mrglavas Exp $
Nested Class Summary | |
---|---|
protected class | NamespaceSupport.Prefixes |
Field Summary | |
---|---|
protected int[] | fContext
Context indexes. |
protected int | fCurrentContext The current context. |
protected String[] | fNamespace
Namespace binding information. |
protected int | fNamespaceSize The top of the namespace information array. |
protected String[] | fPrefixes |
Constructor Summary | |
---|---|
NamespaceSupport() Default constructor. | |
NamespaceSupport(NamespaceContext context)
Constructs a namespace context object and initializes it with
the prefixes declared in the specified context. |
Method Summary | |
---|---|
boolean | containsPrefix(String prefix)
Checks whether a binding or unbinding for
the given prefix exists in the context.
|
boolean | declarePrefix(String prefix, String uri) |
Enumeration | getAllPrefixes() |
String | getDeclaredPrefixAt(int index) |
int | getDeclaredPrefixCount() |
String | getPrefix(String uri) |
String | getURI(String prefix) |
void | popContext() |
void | pushContext() |
void | reset() |
See Also: fNamespaceSize
See Also: fNamespaceSize fContext
Parameters: prefix The prefix to look up.
Returns: true if the given prefix exists in the context
See Also: org.apache.xerces.xni.NamespaceContext#declarePrefix(String, String)
See Also: org.apache.xerces.xni.NamespaceContext#getAllPrefixes()
See Also: org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixAt(int)
See Also: org.apache.xerces.xni.NamespaceContext#getDeclaredPrefixCount()
See Also: org.apache.xerces.xni.NamespaceContext#getPrefix(String)
See Also: org.apache.xerces.xni.NamespaceContext#getURI(String)
See Also: org.apache.xerces.xni.NamespaceContext#popContext()
See Also: org.apache.xerces.xni.NamespaceContext#pushContext()
See Also: org.apache.xerces.xni.NamespaceContext#reset()