|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.utils.FwRegularExpression
I am a simple wrapper for the regular expression logic provided by OroInc.
| Field Summary | |
com.oroinc.text.regex.PatternCompiler |
compiler
|
com.oroinc.text.regex.PatternMatcher |
matcher
|
int |
options
|
com.oroinc.text.regex.Pattern |
pattern
|
| Constructor Summary | |
FwRegularExpression()
|
|
| Method Summary | |
boolean |
contains(java.lang.String s)
Determine if the current pattern contains this string. |
com.oroinc.text.regex.PatternCompiler |
getCompiler()
|
com.oroinc.text.regex.PatternMatcher |
getMatcher()
|
com.oroinc.text.regex.Pattern |
getPattern()
|
java.lang.String |
getResultGroup(int i)
|
java.util.Vector |
getResultGroups()
Return the collection of Strings that are the portions of the match inside parenthesis in the expression. |
boolean |
isValid(java.lang.String s)
Determine if a regular expression in string fomrat can be parsed into a Pattern. |
boolean |
matches(java.lang.String s)
Determine if the current pattern can be used for a complete match of this string. |
boolean |
matches(java.lang.String s,
java.lang.String p)
|
void |
setCaseSensitive(boolean b)
|
void |
setCompiler(com.oroinc.text.regex.PatternCompiler o)
|
void |
setMatcher(com.oroinc.text.regex.PatternMatcher o)
|
void |
setPattern(com.oroinc.text.regex.Pattern o)
|
void |
setPattern(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public com.oroinc.text.regex.PatternCompiler compiler
public com.oroinc.text.regex.PatternMatcher matcher
public com.oroinc.text.regex.Pattern pattern
public int options
| Constructor Detail |
public FwRegularExpression()
| Method Detail |
public com.oroinc.text.regex.PatternCompiler getCompiler()
public void setCompiler(com.oroinc.text.regex.PatternCompiler o)
public com.oroinc.text.regex.PatternMatcher getMatcher()
public void setMatcher(com.oroinc.text.regex.PatternMatcher o)
public com.oroinc.text.regex.Pattern getPattern()
public void setPattern(com.oroinc.text.regex.Pattern o)
public void setPattern(java.lang.String s)
public void setCaseSensitive(boolean b)
public java.util.Vector getResultGroups()
public java.lang.String getResultGroup(int i)
public boolean matches(java.lang.String s)
public boolean matches(java.lang.String s,
java.lang.String p)
public boolean contains(java.lang.String s)
public boolean isValid(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||