Package org.openremote.model.value
Class ValueConstraint.Pattern
java.lang.Object
org.openremote.model.value.ValueConstraint
org.openremote.model.value.ValueConstraint.Pattern
- All Implemented Interfaces:
Serializable
- Enclosing class:
ValueConstraint
The attribute value must match the regular expression pattern described in the
regexp
property. The regular expression follows the Java regular expression conventions. Flags can be
specified using the flags
property with values: CASE_INSENSITIVE, MULTILINE, DOTALL,
UNIX_LINES, UNICODE_CASE, CANON_EQ and COMMENTS. 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
FieldsModifier and TypeFieldDescriptionprotected jakarta.validation.constraints.Pattern.Flag[]
protected String
Fields 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
Modifier and TypeMethodDescriptionboolean
jakarta.validation.constraints.Pattern.Flag[]
getFlags()
setMessage
(String message) Methods inherited from class org.openremote.model.value.ValueConstraint
constraints, getMessage
-
Field Details
-
regexp
-
flags
protected jakarta.validation.constraints.Pattern.Flag[] flags
-
-
Constructor Details
-
Pattern
-
Pattern
-
-
Method Details
-
getRegexp
-
getFlags
public jakarta.validation.constraints.Pattern.Flag[] getFlags() -
setMessage
-
getParameters
- Specified by:
getParameters
in classValueConstraint
-
evaluate
- Specified by:
evaluate
in classValueConstraint
-