ValueType
- value typepublic class BasicAttribute<ValueType> extends BaseAttribute<ValueType> implements Cloneable
Object.toString()
method on an attribute's
values. Therefore any value should return something reasonable for that method and what is returned
should be very stable across versions.コンストラクタと説明 |
---|
BasicAttribute()
Constructor.
|
BasicAttribute(String attributeId)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
BasicAttribute<ValueType> |
clone() |
List<AttributeEncoder> |
getEncoders()
Gets the list of attribute encoders usable with this attribute.
|
String |
getId()
Gets the unique ID of the attribute.
|
Comparator<ValueType> |
getValueComparator()
Gets the comparator used to sort values.
|
Collection<ValueType> |
getValues()
Gets the values of the attribute.
|
void |
setId(String newID)
Set id of this attribute.
|
void |
setValueComparator(Comparator<ValueType> newComparator)
Set value comparator for this attribute.
|
void |
setValues(Collection<ValueType> newValues)
Replace the current set of values with the given set.
|
compareTo, equals, getDisplayDescriptions, getDisplayNames, hashCode, toString
public BasicAttribute()
public BasicAttribute(String attributeId)
attributeId
- the ID of this attributepublic List<AttributeEncoder> getEncoders()
getEncoders
クラス内 BaseAttribute<ValueType>
public String getId()
getId
クラス内 BaseAttribute<ValueType>
public void setId(String newID)
newID
- new IDpublic Comparator<ValueType> getValueComparator()
getValueComparator
クラス内 BaseAttribute<ValueType>
public void setValueComparator(Comparator<ValueType> newComparator)
newComparator
- new value comparatorpublic Collection<ValueType> getValues()
getValues
クラス内 BaseAttribute<ValueType>
public void setValues(Collection<ValueType> newValues)
newValues
- new values to replace existing onespublic BasicAttribute<ValueType> clone()
Copyright © 2012. All Rights Reserved.