|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.Namespaces
public final class Namespaces
This class contains the namespaces of a database.
Constructor Summary | |
---|---|
Namespaces()
Empty constructor. |
Method Summary | |
---|---|
void |
add(byte[] p,
byte[] u,
int pre)
Adds the specified namespace to the namespace structure and changes the root node. |
int |
add(int pre,
int par,
byte[] p,
byte[] u)
Adds a namespace for the specified pre value. |
int |
addURI(byte[] u)
Adds the specified namespace uri. |
void |
close(int pre)
Closes a node. |
byte[] |
info()
Returns namespace information. |
boolean |
open()
Opens an element. |
int |
size()
Returns the number of uri references. |
byte[] |
table(int s,
int e)
Returns a tabular representation of the namespaces. |
String |
toString()
|
String |
toString(int s,
int e)
Returns a string representation of the namespaces. |
int |
uri(byte[] n,
boolean elem)
Returns the namespace uri reference for the specified name, or 0 if namespace cannot be found. |
int |
uri(byte[] name,
int pre)
Returns the namespace URI reference for the specified QName and pre value. |
byte[] |
uri(int id)
Returns the specified namespace uri. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Namespaces()
Method Detail |
---|
public void add(byte[] p, byte[] u, int pre)
p
- prefixu
- uripre
- pre valuepublic boolean open()
public void close(int pre)
pre
- current pre valuepublic int uri(byte[] n, boolean elem)
n
- tag/attribute nameelem
- element flag
public int size()
public byte[] uri(int id)
id
- namespace uri reference
public int uri(byte[] name, int pre)
name
- tag/attribute namepre
- pre value
public int add(int pre, int par, byte[] p, byte[] u)
pre
- pre valuepar
- parentp
- prefixu
- uri
public int addURI(byte[] u)
u
- namespace uri to be added
public byte[] table(int s, int e)
s
- start pre valuee
- end pre value
public byte[] info()
public String toString(int s, int e)
s
- start pre valuee
- end pre value
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |