Package docking.widgets.table.constraint

# Class StringNotContainsColumnConstraint

java.lang.Object
docking.widgets.table.constraint.StringColumnConstraint
docking.widgets.table.constraint.StringContainsColumnConstraint
docking.widgets.table.constraint.StringNotContainsColumnConstraint

All Implemented Interfaces:
  `ColumnConstraint<String>`, `Comparable<ColumnConstraint<String>>`

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

- ## Field Summary

  ### Fields inherited from class docking.widgets.table.constraint.StringColumnConstraint

  `matchesPattern`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StringNotContainsColumnConstraint(String spec)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `accepts(String value, TableFilterContext context)`
  Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwise
  `ColumnConstraint<String>`
  `copy(String newPatternString)`
  subclasses must override to generate new versions of themselves but with a new pattern string.
  `protected Pattern`
  `generateFindsPattern()`
  `String`
  `getGroup()`
  Returns a "group" string that is used to logically group column constraints for presentation to the user
  `String`
  `getName()`
  Returns the name of the constraint

  ### Methods inherited from class docking.widgets.table.constraint.StringContainsColumnConstraint

  `generateMatchesPattern`

  ### Methods inherited from class docking.widgets.table.constraint.StringColumnConstraint

  `equals, getColumnType, getConstraintValueString, getConstraintValueTooltip, getEditor, getHighlightMatcher, getPatternString, hashCode, isValidPatternString, parseConstraintValue, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface docking.widgets.table.constraint.ColumnConstraint

  `asString, compareTo`

- ## Constructor Details

  - ### StringNotContainsColumnConstraint

    public StringNotContainsColumnConstraint(String spec)
    Constructor
    Parameters:
      `spec` - the string to use to create a "not contains" pattern.

- ## Method Details

  - ### getName

    public String getName()
    Description copied from interface: `ColumnConstraint`
    Returns the name of the constraint
    Specified by:
      `getName` in interface `ColumnConstraint<String>`
    Overrides:
      `getName` in class `StringContainsColumnConstraint`
    Returns:
      the name of the constraint.

  - ### getGroup

    public 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<String>`
    Overrides:
      `getGroup` in class `StringColumnConstraint`
    Returns:
      the group this constraint belongs to.

  - ### accepts

    public boolean accepts(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<String>`
    Overrides:
      `accepts` in class `StringColumnConstraint`
    Parameters:
      `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.
    Returns:
      true if the column value passes the constraint, false otherwise

  - ### copy

    public ColumnConstraint<String> copy(String newPatternString)
    Description copied from class: `StringColumnConstraint`
    subclasses must override to generate new versions of themselves but with a new pattern string.
    Overrides:
      `copy` in class `StringContainsColumnConstraint`
    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.

  - ### generateFindsPattern

    protected Pattern generateFindsPattern()
    Overrides:
      `generateFindsPattern` in class `StringColumnConstraint`