Package org.jdesktop.swingx.search
Class PatternModel.RegexCreator
java.lang.Object
org.jdesktop.swingx.search.PatternModel.RegexCreator
- Direct Known Subclasses:
PatternModel.AnchoredSearchMode
- Enclosing class:
- PatternModel
Responsible for converting a "raw text" into a valid
regular expression in the context of a set of rules.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
createContainedRegEx
(String searchString) protected String
createEndAnchoredRegEx
(String searchString) protected String
createEqualsRegEx
(String searchString) createRegEx
(String searchString) protected String
createStartsAnchoredRegEx
(String searchString) protected String
boolean
void
setMatchRule
(String category)
-
Field Details
-
matchRule
-
-
Constructor Details
-
RegexCreator
public RegexCreator()
-
-
Method Details
-
getMatchRule
-
isAutoDetect
public boolean isAutoDetect() -
createRegEx
-
createEndAnchoredRegEx
-
createStartsAnchoredRegEx
-
createEqualsRegEx
-
createContainedRegEx
-
setMatchRule
-
getDefaultMatchRule
-
getMatchRules
-