Class SimplePatternSearcher
java.lang.Object
com.inductiveautomation.ignition.common.util.SimplePatternSearcher
- All Implemented Interfaces:
- PatternSearcher
This class helps with "simple" pattern matching. That is, it will take a pattern and apply stars (*) and question
 marks (?) to mean match any, and match one respectively.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.util.PatternSearcherPatternSearcher.SubstringLocation
- 
Constructor SummaryConstructorsConstructorDescriptionSimplePatternSearcher(String pattern) SimplePatternSearcher(String pattern, boolean matchLine) 
- 
Method SummaryModifier and TypeMethodDescriptionfind(CharSequence input) booleanmatches(CharSequence input) static booleanmatches(String pattern, CharSequence input) voidsetPattern(String pattern) voidsetPattern(String pattern, boolean matchLine) 
- 
Constructor Details- 
SimplePatternSearcher
- 
SimplePatternSearcher
 
- 
- 
Method Details- 
setPattern
- 
setPattern- Parameters:
- pattern- The pattern string to use. If null or blank, any string will match successfully.
- matchLine- If true, the pattern will be applied to the whole string. If false, the pattern will get "*" appended to the front and back so that it matches mid-line.
 
- 
getPattern
- 
matches- Specified by:
- matchesin interface- PatternSearcher
 
- 
find- Specified by:
- findin interface- PatternSearcher
 
- 
matches
 
-