org.jdesktop.swingx.search
Class PatternModel.RegexCreator

java.lang.Object
  extended by org.jdesktop.swingx.search.PatternModel.RegexCreator
Direct Known Subclasses:
PatternModel.AnchoredSearchMode
Enclosing class:
PatternModel

public static class PatternModel.RegexCreator
extends Object

Responsible for converting a "raw text" into a valid regular expression in the context of a set of rules.


Field Summary
protected  String matchRule
           
 
Constructor Summary
PatternModel.RegexCreator()
           
 
Method Summary
protected  String createContainedRegEx(String searchString)
           
protected  String createEndAnchoredRegEx(String searchString)
           
protected  String createEqualsRegEx(String searchString)
           
 String createRegEx(String searchString)
           
protected  String createStartsAnchoredRegEx(String searchString)
           
protected  String getDefaultMatchRule()
           
 String getMatchRule()
           
 List<String> getMatchRules()
           
 boolean isAutoDetect()
           
 void setMatchRule(String category)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchRule

protected String matchRule
Constructor Detail

PatternModel.RegexCreator

public PatternModel.RegexCreator()
Method Detail

getMatchRule

public String getMatchRule()

isAutoDetect

public boolean isAutoDetect()

createRegEx

public String createRegEx(String searchString)

createEndAnchoredRegEx

protected String createEndAnchoredRegEx(String searchString)

createStartsAnchoredRegEx

protected String createStartsAnchoredRegEx(String searchString)

createEqualsRegEx

protected String createEqualsRegEx(String searchString)

createContainedRegEx

protected String createContainedRegEx(String searchString)

setMatchRule

public void setMatchRule(String category)

getDefaultMatchRule

protected String getDefaultMatchRule()

getMatchRules

public List<String> getMatchRules()