Enum TimeEntry.StatusEnum

java.lang.Object
java.lang.Enum<TimeEntry.StatusEnum>
com.xero.models.project.TimeEntry.StatusEnum
All Implemented Interfaces:
Serializable, Comparable<TimeEntry.StatusEnum>, java.lang.constant.Constable
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.
  • Enum Constant Details

  • Method Details

    • values

      public static TimeEntry.StatusEnum[] 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

      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TimeEntry.StatusEnum>
    • fromValue

      public static TimeEntry.StatusEnum fromValue​(String value)