Package org.openremote.model.value
Class ValueConstraint.Size
java.lang.Object
org.openremote.model.value.ValueConstraint
org.openremote.model.value.ValueConstraint.Size
- All Implemented Interfaces:
Serializable
- Enclosing class:
ValueConstraint
The attribute value must be between the specified boundaries based on the
min
and
max
properties. Supported types are JSON compatible strings, arrays and objects. Null values
are considered valid.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openremote.model.value.ValueConstraint
ValueConstraint.AllowedValues, ValueConstraint.Future, ValueConstraint.FutureOrPresent, ValueConstraint.Max, ValueConstraint.Min, ValueConstraint.NotBlank, ValueConstraint.NotEmpty, ValueConstraint.NotNull, ValueConstraint.Past, ValueConstraint.PastOrPresent, ValueConstraint.Pattern, ValueConstraint.Size
-
Field Summary
FieldsFields inherited from class org.openremote.model.value.ValueConstraint
ALLOWED_VALUES_MESSAGE_TEMPLATE, FUTURE_MESSAGE_TEMPLATE, FUTURE_OR_PRESENT_MESSAGE_TEMPLATE, MAX_MESSAGE_TEMPLATE, message, MIN_MESSAGE_TEMPLATE, NOT_BLANK_MESSAGE_TEMPLATE, NOT_EMPTY_MESSAGE_TEMPLATE, NOT_NULL_MESSAGE_TEMPLATE, PAST_MESSAGE_TEMPLATE, PAST_OR_PRESENT_MESSAGE_TEMPLATE, PATTERN_MESSAGE_TEMPLATE, SIZE_MESSAGE_TEMPLATE, VALUE_CONSTRAINT_INVALID
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openremote.model.value.ValueConstraint
constraints, getMessage
-
Field Details
-
min
-
max
-
-
Constructor Details
-
Size
-
-
Method Details
-
getMin
-
getMax
-
setMessage
-
getParameters
- Specified by:
getParameters
in classValueConstraint
-
evaluate
- Specified by:
evaluate
in classValueConstraint
-