|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.Set
org.basex.data.Namespaces
public final class Namespaces
This class organizes the namespaces of a database.
| Field Summary |
|---|
| Fields inherited from class org.basex.util.Set |
|---|
size |
| Constructor Summary | |
|---|---|
Namespaces()
Default Constructor. |
|
Namespaces(DataInput in)
Constructor, specifying an input file. |
|
| Method Summary | |
|---|---|
void |
add(byte[] p,
byte[] u)
Adds the specified namespace. |
void |
close(int p)
Closes a node. |
void |
finish(DataOutput out)
Writes the namespaces to disk. |
int |
get(byte[] n)
Returns the namespace for the specified qname. |
int |
get(byte[] n,
int p)
Returns the namespace for the specified qname and pre value. |
int[] |
get(int p)
Returns the namespace keys and values for the specified pre value. |
boolean |
open(int p)
Opens a node. |
void |
print(PrintOutput out,
int s)
Prints the namespace structure to the specified output stream. |
| Methods inherited from class org.basex.util.Set |
|---|
add, delete, id, key, keys, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Namespaces()
public Namespaces(DataInput in)
throws java.io.IOException
in - input stream
java.io.IOException - I/O exception| Method Detail |
|---|
public void finish(DataOutput out)
throws java.io.IOException
out - output stream
java.io.IOException - I/O exceptionpublic boolean open(int p)
p - current pre value
public void close(int p)
p - current pre value
public void add(byte[] p,
byte[] u)
p - namespace prefixu - namespace uri
public int get(byte[] n,
int p)
n - tag/attribute namep - pre value
public int[] get(int p)
p - pre value
public int get(byte[] n)
n - tag/attribute name
public void print(PrintOutput out,
int s)
throws java.io.IOException
out - output streams - space for pre value
java.io.IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||