public final class NSContext
extends java.lang.Object
| Constructor and Description |
|---|
NSContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] pref,
byte[] uri)
Adds a namespace to the namespace stack.
|
void |
add(byte[] pref,
byte[] uri,
InputInfo ii)
Validates and adds the specified namespace at parsing time.
|
void |
delete(byte[] pref)
Deletes the specified namespace at parsing time.
|
byte[] |
prefix(byte[] uri)
Returns the prefix for the specified namespace URI.
|
byte[][] |
prefixes()
Returns all prefixes.
|
Atts |
reset()
Resets the stack and returns the old instance.
|
int |
size()
Returns the number of dynamic namespaces.
|
void |
size(int s)
Sets the number of dynamic namespaces.
|
Atts |
stack()
Returns the namespace stack.
|
void |
stack(Atts s)
Sets the specified stack.
|
byte[] |
staticURI(byte[] pref)
Finds the namespace URI for the specified prefix, if it is found
in statically declared namespaces.
|
byte[] |
uri(byte[] pref)
Returns the namespace URI for the specified prefix, if it is either
found in the dynamic, static or predefined namespaces.
|
public void add(byte[] pref,
byte[] uri,
InputInfo ii)
throws QueryException
pref - namespace prefixuri - namespace URIii - input infoQueryException - query exceptionpublic void delete(byte[] pref)
pref - namespace prefixpublic byte[] staticURI(byte[] pref)
pref - prefix of the namespacenullpublic byte[] uri(byte[] pref)
pref - prefix of the namespacenullpublic byte[] prefix(byte[] uri)
uri - namespace URIpublic byte[][] prefixes()
public int size()
public void size(int s)
s - namespacespublic void add(byte[] pref,
byte[] uri)
pref - namespace prefixuri - namespace URIpublic void stack(Atts s)
s - stack to be setpublic Atts reset()
public Atts stack()