Package com.onwbp.base.text
Class NomenclatureItem<T>
java.lang.Object
com.onwbp.base.text.NomenclatureItem<T>
- Direct Known Subclasses:
NomenclatureItemValue
A
NomenclatureItem
associates a value with one or more labels. Each label may be associated with a
locale.- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
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
final T
getValue()
Returns the value of this item.boolean
Returnstrue
if this item is the default item selected when an associated instance is undefined.abstract boolean
final boolean
Obsolete, always returnstrue
.void
setDefaultItem
(boolean isDefaultItem) If the specified argument istrue
, then this item is the default item selected when an associated instance is undefined.abstract void
setDefaultLabel
(String aString) Sets first label.abstract void
void
Replaces the value with the specified object.toString()
-
Field Details
-
_value
-
_defaultLabel
-
-
Method Details
-
getDefaultLabel
Returns first label. -
getLabel
Returns the label at the specified position (from 0 to the number of labels - 1). -
isLocalized
public abstract boolean isLocalized() -
setDefaultLabel
Sets first label. -
setLabel
-
getLabel
-
getValue
Returns the value of this item. -
isDefaultItem
public boolean isDefaultItem()Returnstrue
if 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
Replaces the value with the specified object. -
toString
-