Package com.xero.models.project
Enum Task.StatusEnum
- java.lang.Object
-
- java.lang.Enum<Task.StatusEnum>
-
- com.xero.models.project.Task.StatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Task.StatusEnum>
- Enclosing class:
- Task
public static enum Task.StatusEnum extends Enum<Task.StatusEnum>
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Task.StatusEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Task.StatusEnumvalueOf(String name)Returns 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 Detail
-
ACTIVE
public static final Task.StatusEnum ACTIVE
ACTIVE
-
INVOICED
public static final Task.StatusEnum INVOICED
INVOICED
-
LOCKED
public static final Task.StatusEnum LOCKED
LOCKED
-
-
Method Detail
-
values
public static Task.StatusEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Task.StatusEnum c : Task.StatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Task.StatusEnum valueOf(String name)
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
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<Task.StatusEnum>- Returns:
- String value
-
fromValue
public static Task.StatusEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-