| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Attribute> |
attributes
Underlying attributes.
|
| Constructor and Description |
|---|
Attributes() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Attribute attr)
Adds the given attribute to the end of the attribute list.
|
void |
add(java.lang.String typeOid,
java.lang.String value)
Adds an attribute by type and value to the end of the attribute list.
|
java.util.List<Attribute> |
getAll()
Gets an immutable list of attributes.
|
java.lang.String |
getValue(AttributeType type)
Gets the first value of the given type that appears in the attribute list.
|
java.util.List<java.lang.String> |
getValues(AttributeType type)
Gets an immutable list of all attributes of the given type.
|
java.util.Iterator<Attribute> |
iterator() |
int |
size()
Gets the number of attributes contained in this instance.
|
private final java.util.List<Attribute> attributes
public void add(java.lang.String typeOid,
java.lang.String value)
typeOid - OID of attribute type.value - Attribute value.public void add(Attribute attr)
attr - Non-null attribute.public int size()
public java.util.List<Attribute> getAll()
public java.util.List<java.lang.String> getValues(AttributeType type)
type - Attribute type.public java.lang.String getValue(AttributeType type)
type - Attribute type.