Class PatternModel.AnchoredSearchMode
java.lang.Object
org.jdesktop.swingx.search.PatternModel.RegexCreator
org.jdesktop.swingx.search.PatternModel.AnchoredSearchMode
- Enclosing class:
PatternModel
Support for anchored input.
PENDING: NOT TESTED - simply moved!
Need to define requirements...
-
Field Summary
Fields inherited from class PatternModel.RegexCreator
matchRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRegEx(String searchExp) private booleanhasEndAnchor(String str) private booleanhasStartAnchor(String str) booleanbooleanreturns true if the pattern must match from the beginning of the string, or false if the pattern can match anywhere in a string.booleanreturns true if the pattern must match from the beginning of the string, or false if the pattern can match anywhere in a string.Methods inherited from class PatternModel.RegexCreator
createContainedRegEx, createEndAnchoredRegEx, createEqualsRegEx, createStartsAnchoredRegEx, getDefaultMatchRule, getMatchRule, getMatchRules, setMatchRule
-
Constructor Details
-
AnchoredSearchMode
public AnchoredSearchMode()
-
-
Method Details
-
isAutoDetect
public boolean isAutoDetect()- Overrides:
isAutoDetectin classPatternModel.RegexCreator
-
createRegEx
- Overrides:
createRegExin classPatternModel.RegexCreator
-
hasStartAnchor
-
hasEndAnchor
-
isStartAnchored
public boolean isStartAnchored()returns true if the pattern must match from the beginning of the string, or false if the pattern can match anywhere in a string. -
isEndAnchored
public boolean isEndAnchored()returns true if the pattern must match from the beginning of the string, or false if the pattern can match anywhere in a string.
-