Advanced Customization > Services and Infrastructure Customization > Enumerated Types > The EnumeratedType Class
  
The EnumeratedType Class
EnumeratedType represents a type whose possible values are constrained to a set (as defined in a resource).
value
The internal value, which is persisted.
display
The localizable display text.
comment
An optional comment describing the value.
order
Provides an explicit sort order for the value.
defaultValue
Specifies the value that is the default value for the type.
selectable
Specifies if the value should be allowed to be selected.
The constructors for EnumeratedTypes are protected so that instances can only be constructed internally. The data needed for construction is obtained from a resource and used to construct the instances in the static initializer.
getValueSet() returns the set of possible values for the class, where the possible values are instances of the class.
toString() returns the internal value, which will be persisted. This follows the pattern of primitive wrappers provided by Sun. This means toString() is not available for generic use by GUI components; they must use getDisplay().