Enum Class FieldValueType

java.lang.Object
java.lang.Enum<FieldValueType>
org.graylog.events.fields.FieldValueType
All Implemented Interfaces:
Serializable, Comparable<FieldValueType>, Constable, FieldTypeValidator

public enum FieldValueType extends Enum<FieldValueType> implements FieldTypeValidator
  • Enum Constant Details

  • Method Details

    • values

      public static FieldValueType[] 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 FieldValueType 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
    • isError

      public boolean isError()
    • validate

      public Optional<List<String>> validate(String value)
      Description copied from interface: FieldTypeValidator
      Validates the given value for compliance with a data type.
      Specified by:
      validate in interface FieldTypeValidator
      Parameters:
      value - the value to validate
      Returns:
      optionally list of validation error messages