Type - type of attribute description describing single values
contained in this collectionpublic final class MultipleAttribute<Type extends AttributeDesc> extends Attribute
| Constructor and Description |
|---|
MultipleAttribute(Type desc,
java.util.LinkedList<Attribute> l1)
Initializes this with empty value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Attribute value)
Adds the given attribute to the list of values for this attribute.
|
Type |
getAttributeDesc() |
java.lang.String |
getValueAsString()
Returns a string representation of this attribute's value.
|
java.util.List<Attribute> |
getValues()
Gets the list of values for this attribute.
|
void |
removeValue(Attribute value)
Adds the given attribute to the list of values for this attribute.
|
java.lang.String |
toString()
Returns the string representation of this attribute as the concatenation
of the string representations of the single values.
|
public java.util.List<Attribute> getValues()
public void addValue(Attribute value)
value - the attribute to be addedpublic void removeValue(Attribute value)
value - the attribute to be addedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getValueAsString()
AttributegetValueAsString in class Attributepublic Type getAttributeDesc()