public final class NSContext extends 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.
|
void |
inScope(Atts atts)
Adds the namespaces that are currently in scope.
|
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.
|
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 namespacenull
public byte[] uri(byte[] pref)
pref
- prefix of the namespacenull
public int size()
public void size(int s)
s
- namespacespublic void add(byte[] pref, byte[] uri)
pref
- namespace prefixuri
- namespace URIpublic Atts stack()
public void inScope(Atts atts)
atts
- namespacesCopyright © 2005–2015 BaseX Team. All rights reserved.