|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.string.shellmatcher.ShellMatcher
public class ShellMatcher
The ShellMatcher implements a UNIX-shell-compatible string pattern matcher.
For a description of the meta characters that can be used in a pattern, see the setPattern(java.lang.String) method.
The methods of this class throw the ShellMatcherException runtime exception on argument
or pattern syntax error.
| Constructor Summary | |
|---|---|
ShellMatcher()
Default constructor |
|
ShellMatcher(java.lang.String patternArg)
Value constructor. |
|
| Method Summary | |
|---|---|
boolean |
match(java.lang.String s)
Matches a string against the current pattern. |
void |
setIgnoreCase(boolean ignoreCase)
Sets the ignore case option. |
void |
setPattern(java.lang.String pattern)
Sets the pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShellMatcher()
public ShellMatcher(java.lang.String patternArg)
patternArg - The pattern may contain the following meta characters:| Method Detail |
|---|
public void setPattern(java.lang.String pattern)
pattern - The pattern may contain the following meta characters:public void setIgnoreCase(boolean ignoreCase)
ignoreCase - true The character case will be ignored when comparing literals.public boolean match(java.lang.String s)
s - The String to match against the pattern
ShellMatcherException - On argument or pattern syntax error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||