Class ValueConstraint.AllowedValues

java.lang.Object
org.openremote.model.value.ValueConstraint
org.openremote.model.value.ValueConstraint.AllowedValues
All Implemented Interfaces:
Serializable
Enclosing class:
ValueConstraint

public static class ValueConstraint.AllowedValues extends ValueConstraint
The attribute value must match any of the specified values in the allowedValues property. The associated input in the UI will change to a select input with the options specified in the allowedValues property. The allowedValueNames property accepts a list of names that replace the labels in the select input, if the allowedValueNames list matches the length of the allowedValues list otherwise it falls back to the allowedValues as labels. Null values are considered valid. If allowedValues is not specified or empty the constraint only accepts null values.
See Also: