public class AttributeList
extends java.lang.Object
| Constructor and Description |
|---|
AttributeList()
One and only constructor which builds a new empty list of attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Attribute> |
getAllAttributes()
Gets all attributes in the attribute list.
|
Attribute |
getAttributeByNameAndType(java.lang.String name,
java.lang.String type)
Returns a reference to an attribute within the attribute list identified
by its name and type.
|
Attribute[] |
getAttributesByType(java.lang.String type)
Returns an array of attributes from the list that match a given type.
|
java.lang.String |
getAttributeValueByName(java.lang.String name)
Returns the first string value of an attribute from the attribute list
identified by its name only.
|
java.lang.String |
getAttributeValueByNameAndType(java.lang.String name,
java.lang.String type)
Returns the first string value of an attribute from the attribute list
identified by its name and type.
|
java.lang.String[] |
getAttributeValuesByName(java.lang.String name)
Returns the list of string values (as a string array) of an attribute
from the attribute list identified by its name only.
|
java.lang.String[] |
getAttributeValuesByNameAndType(java.lang.String name,
java.lang.String type)
Returns the list of string values (as a string array) of an attribute
from the attribute list identified by its name and type.
|
void |
setAttribute(java.lang.String name,
java.lang.String type,
java.lang.String[] values)
Set the values of an attribute in the attribute list identified by name
and type.
|
java.lang.String |
toString()
String representation of the attribute list useful for debug tracing.
|
public AttributeList()
public java.lang.String getAttributeValueByNameAndType(java.lang.String name,
java.lang.String type)
name - name of attributetype - type of attributepublic java.lang.String getAttributeValueByName(java.lang.String name)
name - name of attributepublic java.lang.String[] getAttributeValuesByNameAndType(java.lang.String name,
java.lang.String type)
name - name of attributetype - type of attributepublic java.lang.String[] getAttributeValuesByName(java.lang.String name)
name - name of attributepublic void setAttribute(java.lang.String name,
java.lang.String type,
java.lang.String[] values)
name - - name of attribute to update/addtype - - type of attribute to update/addvalues - - array of string values of attribute to update/addpublic Attribute getAttributeByNameAndType(java.lang.String name, java.lang.String type)
name - - name of attributetype - - type of attributepublic Attribute[] getAttributesByType(java.lang.String type)
type - type of attribute to matchpublic java.util.List<Attribute> getAllAttributes()
public java.lang.String toString()
toString in class java.lang.Object