|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.util.Atts
public final class Atts
This is a simple container for attributes (name/value pairs).
Field Summary |
---|
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
Atts()
Default constructor. |
|
Atts(byte[] name,
byte[] value)
Constructor, specifying an initial entry. |
Method Summary | |
---|---|
Atts |
add(byte[] name,
byte[] value)
Adds the next name/value pair. |
Atts |
clear()
Clears the container. |
boolean |
contains(byte[] name)
Checks if the specified name is found. |
Atts |
copy()
Creates a shallow copy which shares all keys and values. |
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. |
java.lang.String |
toString()
|
byte[] |
value(byte[] name)
Returns the value for the specified name, or null . |
byte[] |
value(int i)
Returns the value at the specified index position. |
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Atts()
public Atts(byte[] name, byte[] value)
name
- name to be addedvalue
- value to be addedMethod Detail |
---|
public Atts add(byte[] name, byte[] value)
name
- name to be addedvalue
- value 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[] value(int i)
i
- index
public byte[] value(byte[] name)
null
.
name
- name to be found
public Atts clear()
public java.lang.String toString()
toString
in class java.lang.Object
public Atts copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |