java.lang.Object
java.lang.Enum<ValueType>
church.i18n.processing.message.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>, Constable

public enum ValueType extends Enum<ValueType>
There are different types of formats that can be provided. This enum lists the most common types of such format. E.g. you may need to express user, that e-mail value should be of format: ^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$ so in this case you specify 'REGEXP. When provided format is: [STRING, ENUM, LIST, REGEXP], you specify ENUM since it refers to the list of possible enumerated string values.
  • Enum Constant Details

    • BOOLEAN

      public static final ValueType BOOLEAN
    • INTEGER

      public static final ValueType INTEGER
    • DECIMAL

      public static final ValueType DECIMAL
    • NUMBER

      public static final ValueType NUMBER
    • STRING

      public static final ValueType STRING
    • DATETIME

      public static final ValueType DATETIME
    • REGEXP

      public static final ValueType REGEXP
    • SEMVER

      public static final ValueType SEMVER
    • UUID

      public static final ValueType UUID
    • ENUM

      public static final ValueType ENUM
    • LIST

      public static final ValueType LIST
    • SET

      public static final ValueType SET
    • MAP

      public static final ValueType MAP
    • JSON

      public static final ValueType JSON
    • XML

      public static final ValueType XML
    • URL

      public static final ValueType URL
    • URI

      public static final ValueType URI
    • OBJECT

      public static final ValueType OBJECT
    • TYPE

      public static final ValueType TYPE
    • AUTO_MIME_TYPE

      public static final ValueType AUTO_MIME_TYPE
      A special type telling that consumer should follow serialization hints of response. Use this type in the case you pass an object as a value and you expect that correct type will be set at the time of serialization. This might be helpful when using multiple serialization types as response.
  • Method Details

    • values

      public static ValueType[] 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 ValueType 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
    • getValue

      public String getValue()