| 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(String typeOid,
String value)
Adds an attribute by type and value to the end of the attribute list.
|
List<Attribute> |
getAll()
Gets an immutable list of attributes.
|
String |
getValue(AttributeType type)
Gets the first value of the given type that appears in the attribute list.
|
List<String> |
getValues(AttributeType type)
Gets an immutable list of all attributes of the given type.
|
Iterator<Attribute> |
iterator() |
int |
size()
Gets the number of attributes contained in this instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void add(String typeOid, String value)
typeOid - OID of attribute type.value - Attribute value.public void add(Attribute attr)
attr - Non-null attribute.public int size()
public List<Attribute> getAll()
public List<String> getValues(AttributeType type)
type - Attribute type.public String getValue(AttributeType type)
type - Attribute type.Copyright © 2016 JBoss by Red Hat. All rights reserved.