Package com.xero.models.project
Enum TimeEntry.StatusEnum
- java.lang.Object
-
- java.lang.Enum<TimeEntry.StatusEnum>
-
- com.xero.models.project.TimeEntry.StatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TimeEntry.StatusEnum>
- Enclosing class:
- TimeEntry
public static enum TimeEntry.StatusEnum extends Enum<TimeEntry.StatusEnum>
Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeEntry.StatusEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic TimeEntry.StatusEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TimeEntry.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 TimeEntry.StatusEnum ACTIVE
ACTIVE
-
LOCKED
public static final TimeEntry.StatusEnum LOCKED
LOCKED
-
INVOICED
public static final TimeEntry.StatusEnum INVOICED
INVOICED
-
-
Method Detail
-
values
public static TimeEntry.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 (TimeEntry.StatusEnum c : TimeEntry.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 TimeEntry.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<TimeEntry.StatusEnum>- Returns:
- String value
-
fromValue
public static TimeEntry.StatusEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-