|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.NSLocal
public final class NSLocal
Local namespaces.
Field Summary | |
---|---|
Atts |
ns
Namespaces. |
Constructor Summary | |
---|---|
NSLocal()
|
Method Summary | |
---|---|
void |
add(QNm name)
Adds the specified namespace. |
NSLocal |
copy()
Creates a copy with the default namespaces. |
void |
delete(QNm name)
Deletes the specified namespace. |
byte[] |
find(byte[] pre)
Finds the URI for the specified prefix. |
void |
finish(byte[] elem)
Finishes the creation of default namespaces. |
byte[] |
prefix(byte[] uri)
Finds the specified URI and returns the prefix. |
int |
size()
Returns the number of namespaces. |
void |
size(int s)
Sets the number of namespaces. |
byte[] |
uri(byte[] pre,
boolean dn)
Finds the uri for the specified prefix in the local and global namespaces. |
void |
uri(QNm qname)
Assigns a uri to the specified QName. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Atts ns
Constructor Detail |
---|
public NSLocal()
Method Detail |
---|
public void add(QNm name) throws QueryException
name
- namespace
QueryException
- query exceptionpublic void delete(QNm name)
name
- namespacepublic void uri(QNm qname)
qname
- qnamepublic byte[] uri(byte[] pre, boolean dn) throws QueryException
pre
- prefix of the namespacedn
- dynamic error
QueryException
- query exceptionpublic byte[] find(byte[] pre)
pre
- prefix of the namespace
public byte[] prefix(byte[] uri)
uri
- URI
public void finish(byte[] elem)
elem
- default element namespacepublic NSLocal copy()
public int size()
public void size(int s)
s
- namespaces
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |