public final class Atts extends ElementList
size
Constructor and Description |
---|
Atts()
Default constructor.
|
Atts(byte[] name,
byte[] value)
Constructor, specifying an initial entry.
|
Modifier and Type | Method and Description |
---|---|
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 index)
Deletes the specified entry.
|
int |
get(byte[] name)
Returns the offset to the specified name.
|
byte[] |
name(int index)
Returns the name at the specified index position.
|
String |
toString() |
byte[] |
value(byte[] name)
Returns the value for the specified name or
null . |
byte[] |
value(int index)
Returns the value at the specified index position.
|
public Atts()
public Atts(byte[] name, byte[] value)
name
- name to be addedvalue
- value to be addedpublic Atts add(byte[] name, byte[] value)
name
- name to be addedvalue
- value to be addedpublic void delete(int index)
index
- entry indexpublic boolean contains(byte[] name)
name
- name to be foundpublic int get(byte[] name)
name
- name to be foundpublic byte[] name(int index)
index
- indexpublic byte[] value(int index)
index
- indexpublic byte[] value(byte[] name)
null
.name
- name to be foundpublic Atts clear()
public Atts copy()
Copyright © 2005–2015 BaseX Team. All rights reserved.