Class ValuePatternBehavior

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.fields.ValuePatternBehavior
All Implemented Interfaces:
FieldBehavior<ValuePatternBehavior>, Serializable

public class ValuePatternBehavior extends Object implements FieldBehavior<ValuePatternBehavior>
Field behavior: a string value must match a regular expression (the whole value, as Matcher.matches), or the record is refused on insert and update. Empty values are left to isRequired. The pattern and its message are published to frontends in the field's validation rules (UI API 1.6.0), so a client can check a value before saving; the server stays the authority. Write patterns that mean the same in Java and in ECMAScript (no possessive quantifiers, lookbehind or inline flags), since clients test them in their own regex engines.
See Also: