|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.NSContext
public final class NSContext
This class references all statically known namespaces.
Constructor Summary | |
---|---|
NSContext()
|
Method Summary | |
---|---|
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. |
int |
size()
Returns the number of dynamic namespaces. |
void |
size(int s)
Sets the number of dynamic namespaces. |
Atts |
stack()
Returns the namespace 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NSContext()
Method Detail |
---|
public void add(byte[] pref, byte[] uri, InputInfo ii) throws QueryException
pref
- namespace prefixuri
- namespace URIii
- input info
QueryException
- query exceptionpublic void delete(byte[] pref)
pref
- namespace prefixpublic byte[] staticURI(byte[] pref)
pref
- prefix of the namespace
null
public byte[] uri(byte[] pref)
pref
- prefix of the namespace
null
public int size()
public void size(int s)
s
- namespacespublic void add(byte[] pref, byte[] uri)
pref
- namespace prefixuri
- namespace URIpublic Atts stack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |