Class ValueConstraint.Pattern

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

public static class ValueConstraint.Pattern extends 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:
  • Field Details

    • regexp

      protected String regexp
    • flags

      protected jakarta.validation.constraints.Pattern.Flag[] flags
  • Constructor Details

    • Pattern

      public Pattern(String regexp, jakarta.validation.constraints.Pattern.Flag[] flags)
    • Pattern

      public Pattern(String regexp)
  • Method Details