| Modifier | Constructor and Description |
|---|---|
protected |
AttributeImpl() |
|
AttributeImpl(String name) |
|
AttributeImpl(String name,
Set<String> values) |
|
AttributeImpl(String name,
String value) |
|
AttributeImpl(String name,
String[] values) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value) |
void |
addValues(Set<String> values) |
void |
addValues(String[] values) |
void |
clear() |
String |
getName()
Get the name of this attribute.
|
String |
getValue()
Get the first value from the Set of attribute values, or null if the attribute has no values.
|
int |
getValueCount()
Get a count of the number of values this attribute has (0-n).
|
Set<String> |
getValues()
Get the Set of values for this attribute.
|
String[] |
getValuesAsArray()
Return the attributes values as a String array.
|
void |
removeValue(String value) |
void |
removeValues(Set<String> values) |
void |
removeValues(String[] values) |
protected AttributeImpl()
public AttributeImpl(String name)
public int getValueCount()
AttributegetValueCount in interface Attributepublic String getName()
Attributepublic String getValue()
Attributepublic Set<String> getValues()
Attributepublic String[] getValuesAsArray()
AttributegetValuesAsArray in interface Attributepublic void removeValue(String value)
removeValue in interface Attributepublic void removeValues(Set<String> values)
removeValues in interface Attributepublic void removeValues(String[] values)
removeValues in interface AttributeCopyright © 2013. All Rights Reserved.