|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.Atts
public final class Atts
This is a simple container for attributes (name/string pairs).
| Constructor Summary | |
|---|---|
Atts()
Default constructor. |
|
Atts(byte[] name,
byte[] string)
Constructor, specifying an initial entry. |
|
| Method Summary | |
|---|---|
Atts |
add(byte[] name,
byte[] string)
Adds the next name/string pair. |
boolean |
contains(byte[] name)
Checks if the specified name is found. |
void |
delete(int i)
Deletes the specified entry. |
int |
get(byte[] name)
Returns the offset to the specified name. |
byte[] |
name(int i)
Returns the name at the specified index position. |
Atts |
reset()
Resets the container. |
int |
size()
Returns the number of attributes. |
void |
size(int s)
Sets the number of attributes. |
byte[] |
string(byte[] name)
Returns the string for the specified name, or null. |
byte[] |
string(int i)
Returns the string at the specified index position. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Atts()
public Atts(byte[] name,
byte[] string)
name - name to be addedstring - string to be added| Method Detail |
|---|
public Atts add(byte[] name,
byte[] string)
name - name to be addedstring - string to be added
public void delete(int i)
i - entry offsetpublic boolean contains(byte[] name)
name - name to be found
public int get(byte[] name)
name - name to be found
public byte[] name(int i)
i - index
public byte[] string(int i)
i - index
public byte[] string(byte[] name)
null.
name - name to be found
public int size()
public void size(int s)
s - number of attributespublic Atts reset()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||