@groovy.transform.ToString(includeNames: true, includePackage: false, excludes: [value]) abstract class OrderStatus extends java.lang.Object implements org.simplemes.eframe.data.EncodedTypeInterface, org.simplemes.eframe.data.ChoiceListInterface, org.simplemes.eframe.data.ChoiceListItemInterface
Defines the basic status codes needed for Orders. This Status controls the overall status of the order. Sub-elements of the order may have other states or statuses.
Modifiers | Name | Description |
---|---|---|
static int |
ID_LENGTH |
The max length of the database representation of this status 8. |
Type | Name and description |
---|---|
private static java.util.List<java.lang.Class> |
coreValues A list of classes that are valid Basic Statuses. |
private java.lang.Boolean |
defaultChoice True if this choice is the default choice in the list. |
Constructor and description |
---|
OrderStatus
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static OrderStatus |
getDefault() Returns the default status. |
|
java.lang.String |
getDisplayValue() Returns the display value for the choice list. |
|
static OrderStatus |
getDoneStatus() Returns the standard done status. |
|
static java.util.List<ChoiceListItemInterface> |
getValidValues(org.simplemes.eframe.data.FieldDefinitionInterface fieldDefinition) Returns the list of valid values for those formats that use a combobox or similar widget. |
|
java.lang.Object |
getValue() Returns the value for the choice list (e.g. a domain record of enum element). |
|
boolean |
isDefaultChoice() Returns true if this choice is the default choice in the list. |
|
boolean |
isDone() Returns true if this status means that the object is done. |
|
boolean |
isWorkable() Returns true if this status means that the object is workable. |
|
java.lang.String |
toStringLocalized(java.util.Locale locale) Returns the localized display value for the choice. |
|
static OrderStatus |
valueOf(java.lang.String id) Returns the instance for the given DB ID. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The max length of the database representation of this status 8.
A list of classes that are valid Basic Statuses.
True if this choice is the default choice in the list.
Returns the default status.
Returns the display value for the choice list.
Returns the standard done status.
Returns the list of valid values for those formats that use a combobox or similar widget.
fieldDefinition
- The field definition used to define this field (optional, provided additional details such as valid values).Returns the value for the choice list (e.g. a domain record of enum element).
Returns true if this choice is the default choice in the list.
Returns true if this status means that the object is done.
Returns true if this status means that the object is workable.
Returns the localized display value for the choice.
locale
- The locale to use for the localized string (Default: default locale).Returns the instance for the given DB ID.
id
- The ID (e.g. 'CREATED').Groovy Documentation