public class Attributes
extends java.lang.Object
Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
void |
add(Attribute attr)
Adds an attribute to the list.
|
Attribute |
get(int index)
Gets one of the attributes from the list.
|
java.lang.String |
getValueByName(java.lang.String attrName)
Find attribute value by name.
|
int |
size()
Number of attributes.
|
java.lang.String |
toString()
Returns a string representation of the list of attributes.
|
public int size()
public void add(Attribute attr)
public Attribute get(int index)
public java.lang.String getValueByName(java.lang.String attrName)
attrName
- attribute name, case insensitivepublic java.lang.String toString()
toString
in class java.lang.Object