Class StringNotContainsColumnConstraint

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

    public class StringNotContainsColumnConstraint
    extends StringContainsColumnConstraint
    String column constraint for matching column values if they don't contain the constraint value pattern.
    • Constructor Detail

      • StringNotContainsColumnConstraint

        public StringNotContainsColumnConstraint​(java.lang.String spec)
        spec - the string to use to create a "not contains" pattern.
    • Method Detail

      • getGroup

        public java.lang.String getGroup()
        Description copied from interface: ColumnConstraint
        Returns a "group" string that is used to logically group column constraints for presentation to the user
        Specified by:
        getGroup in interface ColumnConstraint<java.lang.String>
        getGroup in class StringColumnConstraint
        the group this constraint belongs to.
      • accepts

        public boolean accepts​(java.lang.String value,
                               TableFilterContext context)
        Description copied from interface: ColumnConstraint
        Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwise
        Specified by:
        accepts in interface ColumnConstraint<java.lang.String>
        accepts in class StringColumnConstraint
        value - the column value to be tested.
        context - provides additional information about the the table and its data. This allows the filter to base its decision on information other than just the column value.
        true if the column value passes the constraint, false otherwise
      • 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.
        copy in class StringContainsColumnConstraint
        newPatternString - the new string to use for creating the match pattern.
        a new ColumnConstraint that is the same type as this constraint but with a new range defined.