Package com.xero.models.project
Enum Task.StatusEnum
- All Implemented Interfaces:
Serializable,Comparable<Task.StatusEnum>,java.lang.constant.Constable
- Enclosing class:
Task
Status of the task. When a task of ChargeType is `FIXED` and the rate amount is
invoiced the status will be set to `INVOICED` and can't be modified. A task with
ChargeType of `TIME` or `NON_CHARGEABLE` cannot have a status of
`INVOICED`. A `LOCKED` state indicates that the task is currently changing
state (for example being invoiced) and can't be modified.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.StatusEnumfromValuegetValue()getValuetoString()toStringstatic Task.StatusEnumReturns the enum constant of this type with the specified name.static Task.StatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
ACTIVE -
INVOICED
INVOICED -
LOCKED
LOCKED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
toString- Overrides:
toStringin classEnum<Task.StatusEnum>- Returns:
- String value
-
fromValue
-