public enum FieldValueType extends Enum<FieldValueType> implements FieldTypeValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
isError() |
Optional<List<String>> |
validate(String value)
Validates the given value for compliance with a data type.
|
static FieldValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldValueType STRING
public static final FieldValueType ERROR
public static FieldValueType[] values()
for (FieldValueType c : FieldValueType.values()) System.out.println(c);
public static FieldValueType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isError()
public Optional<List<String>> validate(String value)
FieldTypeValidatorvalidate in interface FieldTypeValidatorvalue - the value to validateCopyright © 2012–2021 Graylog, Inc.. All rights reserved.