Class RegexpValueConstraint

  • All Implemented Interfaces:
    Constraint

    public class RegexpValueConstraint
    extends AbstractConstraint
    Constraint for string values. Checks that the string value matches specified regular expression pattern.
    Author:
    PUdalau
    • Constructor Detail

      • RegexpValueConstraint

        public RegexpValueConstraint​(String value)
    • Method Detail

      • getRegexp

        public String getRegexp()
      • getRegexPattern

        public static String getRegexPattern​(String value)
      • getParams

        public Object[] getParams()
      • check

        public boolean check​(Object... valuesToCheck)