|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
Namespaces()
Default constructor. |
|
Namespaces(DataInput in)
Constructor, specifying an input stream. |
|
| Method Summary | |
|---|---|
int |
add(byte[] p,
byte[] u)
Adds the specified namespace. |
void |
close(int p)
Closes a node. |
int |
get(byte[] n)
Returns the namespace offset for the specified qname. |
int |
get(byte[] n,
int p)
Returns the namespace for the specified name and pre value. |
int[] |
get(int p)
Returns the namespace keys and values for the specified pre value. |
byte[] |
info()
Prints some namespace info. |
void |
info(Map<TokenList> map,
org.basex.data.NSNode n)
Prints some namespace info. |
boolean |
open(int p)
Opens a node. |
void |
print(PrintOutput out,
int s,
boolean all)
Prints the namespace structure to the specified output stream. |
void |
write(DataOutput out)
Writes the namespaces to disk. |
| 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 int add(byte[] p,
byte[] u)
p - namespace prefixu - namespace uri
public boolean open(int p)
p - current pre value
public int get(byte[] n)
n - tag/attribute name
public void write(DataOutput out)
throws java.io.IOException
out - output stream
java.io.IOException - I/O exceptionpublic void close(int p)
p - current pre value
public int get(byte[] n,
int p)
n - tag/attribute namep - pre value
public int[] get(int p)
p - pre value
public void print(PrintOutput out,
int s,
boolean all)
throws java.io.IOException
out - output streams - space for pre valueall - print all namespaces or just the root entries
java.io.IOException - I/O exceptionpublic byte[] info()
public void info(Map<TokenList> map,
org.basex.data.NSNode n)
map - namespace mapn - namespace node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||