public abstract class NomenclatureItem<T> extends Object
NomenclatureItem associates a value with one or more labels. Each label may be associated with a
locale.Nomenclature| Modifier and Type | Field and Description |
|---|---|
static Step |
_defaultLabel |
static Step |
_value |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getDefaultLabel()
Returns first label.
|
abstract String |
getLabel(int index)
Returns the label at the specified position (from 0 to the number of labels - 1).
|
abstract String |
getLabel(Locale aLocale) |
T |
getValue()
Returns the value of this item.
|
boolean |
isDefaultItem()
Returns
true if this item is the default item selected
when an associated instance is undefined. |
abstract boolean |
isLocalized() |
boolean |
isValueItem()
Obsolete, always returns
true. |
void |
setDefaultItem(boolean isDefaultItem)
If the specified argument is
true, then this item is
the default item selected when an associated instance is undefined. |
abstract void |
setDefaultLabel(String aString)
Sets first label.
|
abstract void |
setLabel(int index,
String aString) |
void |
setValue(T aValue)
Replaces the value with the specified object.
|
String |
toString() |
public static final Step _value
public static final Step _defaultLabel
public abstract String getDefaultLabel()
public abstract String getLabel(int index)
public abstract boolean isLocalized()
public abstract void setDefaultLabel(String aString)
public abstract void setLabel(int index,
String aString)
public final T getValue()
public boolean isDefaultItem()
true if this item is the default item selected
when an associated instance is undefined.public final boolean isValueItem()
true.public void setDefaultItem(boolean isDefaultItem)
true, then this item is
the default item selected when an associated instance is undefined.public void setValue(T aValue)