Class StringMatcherColumnConstraint

  • All Implemented Interfaces:
    ColumnConstraint<java.lang.String>, java.lang.Comparable<ColumnConstraint<java.lang.String>>

    public class StringMatcherColumnConstraint
    extends StringColumnConstraint
    String column constraint for matching column values if they match a full regular expression pattern.
    • Constructor Detail

      • StringMatcherColumnConstraint

        public StringMatcherColumnConstraint​(java.lang.String spec)
        Constructor

        This class is for users to enter true regular expression which is why it creates a pattern directly without using the UserSearchUtils

        Parameters:
        spec - the string to use to create a "matcher" pattern.
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: ColumnConstraint
        Returns the name of the constraint
        Returns:
        the name of the constraint.
      • copy

        public ColumnConstraint<java.lang.String> copy​(java.lang.String newPatternString)
        Description copied from class: StringColumnConstraint
        subclasses must override to generate new versions of themselves but with a new pattern string.
        Specified by:
        copy in class StringColumnConstraint
        Parameters:
        newPatternString - the new string to use for creating the match pattern.
        Returns:
        a new ColumnConstraint that is the same type as this constraint but with a new range defined.