|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.xquery.util.NSLocal
public final class NSLocal
Local Namespaces.
Field Summary | |
---|---|
Atts |
atts
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)
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 atts
Constructor Detail |
---|
public NSLocal()
Method Detail |
---|
public void add(QNm name) throws XQException
name
- namespace
XQException
- evaluation exceptionpublic void delete(QNm name)
name
- namespacepublic void uri(QNm qname)
qname
- qnamepublic byte[] uri(byte[] pre) throws XQException
pre
- prefix of the namespace
XQException
- evaluation 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 |