Package docking.widgets.table.constraint
Class StringMatchesColumnConstraint
java.lang.Object
docking.widgets.table.constraint.StringColumnConstraint
docking.widgets.table.constraint.StringMatchesColumnConstraint
- All Implemented Interfaces:
ColumnConstraint<String>,Comparable<ColumnConstraint<String>>
- Direct Known Subclasses:
StringNotMatchesColumnConstraint
String column constraint for matching column values if they match a full regular expression pattern.
-
Field Summary
Fields inherited from class docking.widgets.table.constraint.StringColumnConstraint
matchesPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsubclasses must override to generate new versions of themselves but with a new pattern string.protected Patternprotected PatterngenerateMatchesPattern(String patternString) getName()Returns the name of the constraintbooleanisValidPatternString(String value) Methods inherited from class docking.widgets.table.constraint.StringColumnConstraint
accepts, equals, getColumnType, getConstraintValueString, getConstraintValueTooltip, getEditor, getGroup, getHighlightMatcher, getPatternString, hashCode, parseConstraintValue, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface docking.widgets.table.constraint.ColumnConstraint
asString, compareTo
-
Constructor Details
-
StringMatchesColumnConstraint
ConstructorThis 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 Details
-
getName
Description copied from interface:ColumnConstraintReturns the name of the constraint- Returns:
- the name of the constraint.
-
copy
Description copied from class:StringColumnConstraintsubclasses must override to generate new versions of themselves but with a new pattern string.- Specified by:
copyin classStringColumnConstraint- 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.
-
generateMatchesPattern
- Specified by:
generateMatchesPatternin classStringColumnConstraint
-
isValidPatternString
- Overrides:
isValidPatternStringin classStringColumnConstraint
-
generateFindsPattern
- Overrides:
generateFindsPatternin classStringColumnConstraint
-