Enum Class EditItemType

java.lang.Object
java.lang.Enum<EditItemType>
com.thecoderscorner.menu.domain.EditItemType
All Implemented Interfaces:
Serializable, Comparable<EditItemType>, java.lang.constant.Constable

public enum EditItemType extends Enum<EditItemType>
Text menu items can represent several types of value and as such the edit type must be defined.
  • Enum Constant Details

    • PLAIN_TEXT

      public static final EditItemType PLAIN_TEXT
      This field has no validation, it is plain text
    • IP_ADDRESS

      public static final EditItemType IP_ADDRESS
      This field represents an IP address
    • TIME_24H

      public static final EditItemType TIME_24H
      This field represents a time in 24H format with seconds
    • TIME_12H

      public static final EditItemType TIME_12H
      This field represents a time in 12H format with seconds
    • TIME_24_HUNDREDS

      public static final EditItemType TIME_24_HUNDREDS
      This field represents a time in 24H format down to hundreds of a second
    • GREGORIAN_DATE

      public static final EditItemType GREGORIAN_DATE
      This field represents a gregorian date
    • TIME_DURATION_SECONDS

      public static final EditItemType TIME_DURATION_SECONDS
      This field represents a time duration in seconds
    • TIME_DURATION_HUNDREDS

      public static final EditItemType TIME_DURATION_HUNDREDS
      This field represents a time duration in hundreds
    • TIME_24H_HHMM

      public static final EditItemType TIME_24H_HHMM
      This field represents a 24H time in minutes
    • TIME_12H_HHMM

      public static final EditItemType TIME_12H_HHMM
      This field represents a 12H time in minutes
  • Method Details

    • values

      public static EditItemType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EditItemType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMsgId

      public int getMsgId()
    • fromId

      public static EditItemType fromId(int id)