Package com.onwbp.base.text
Class NomenclatureItem<T>
- java.lang.Object
-
- com.onwbp.base.text.NomenclatureItem<T>
-
- Direct Known Subclasses:
NomenclatureItemValue
public abstract class NomenclatureItem<T> extends Object
ANomenclatureItemassociates a value with one or more labels. Each label may be associated with a locale.- See Also:
Nomenclature
-
-
Field Summary
Fields Modifier and Type Field Description static Step_defaultLabelstatic Step_value
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetDefaultLabel()Returns first label.abstract StringgetLabel(int index)Returns the label at the specified position (from 0 to the number of labels - 1).abstract StringgetLabel(Locale aLocale)TgetValue()Returns the value of this item.booleanisDefaultItem()Returnstrueif this item is the default item selected when an associated instance is undefined.abstract booleanisLocalized()booleanisValueItem()Obsolete, always returnstrue.voidsetDefaultItem(boolean isDefaultItem)If the specified argument istrue, then this item is the default item selected when an associated instance is undefined.abstract voidsetDefaultLabel(String aString)Sets first label.abstract voidsetLabel(int index, String aString)voidsetValue(T aValue)Replaces the value with the specified object.StringtoString()
-
-
-
Method Detail
-
getDefaultLabel
public abstract String getDefaultLabel()
Returns first label.
-
getLabel
public abstract String getLabel(int index)
Returns the label at the specified position (from 0 to the number of labels - 1).
-
isLocalized
public abstract boolean isLocalized()
-
setDefaultLabel
public abstract void setDefaultLabel(String aString)
Sets first label.
-
setLabel
public abstract void setLabel(int index, String aString)
-
getValue
public final T getValue()
Returns the value of this item.
-
isDefaultItem
public boolean isDefaultItem()
Returnstrueif this item is the default item selected when an associated instance is undefined.
-
isValueItem
public final boolean isValueItem()
Obsolete, always returnstrue.
-
setDefaultItem
public void setDefaultItem(boolean isDefaultItem)
If the specified argument istrue, then this item is the default item selected when an associated instance is undefined.
-
setValue
public void setValue(T aValue)
Replaces the value with the specified object.
-
-