|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EnumeratedList
An extended list interface to enumerated variable attributes. The list is automatically sorted if the corresponding attribute provides an appropriate comparator. Implementations are typically unmodifiable, except that localization of attribute names is allowed either directly or through iterators and localized enumerations can be sorted.
| Method Summary | |
|---|---|
Object |
set(int index,
Object value)
Sets the value of the indexed attribute. |
String |
set(int index,
String name)
Sets the name of the indexed attribute. |
String[] |
set(int index,
String[] names)
Sets the name array of the indexed attribute. |
void |
sort()
Sorts the enumeration if sorting is enabled in the corresponding attribute. |
EnumAttribute |
toAttribute(String str)
Return the enumerated attribute from its indexed string representation, which is independent on the locale specific sorting. |
String[] |
toNameArray()
Returns an array containing the enumerated names. |
String |
toString(EnumAttribute elem)
Return the indexed string representation of the enumerated attribute, which is independent on the locale specific sorting. |
String |
toString(int index)
Return the indexed string representation of the indexed attribute, which is independent on the locale specific sorting. |
Object[] |
toValueArray()
Returns an array containing the enumerated values. |
Object[] |
toValueArray(Object[] array)
Returns an array of the specified type containing the enumerated values. |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, size, subList, toArray, toArray |
| Method Detail |
|---|
void sort()
String set(int index,
String name)
index - the index.name - the name.
String[] set(int index,
String[] names)
index - the index.names - the name array.
Object set(int index,
Object value)
set in interface Listindex - the index.value - the value.
String toString(int index)
index - the index to convert.
String toString(EnumAttribute elem)
elem - the attribute to convert.
EnumAttribute toAttribute(String str)
str - the string representation to convert.
String[] toNameArray()
Object[] toValueArray()
Object[] toValueArray(Object[] array)
array - the specified array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||