|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator
A simple implementation of a regular expression validator which always returns true. This class can be used to "supress" validation exceptions when no regular expression validator has been configured.
| Constructor Summary | |
|---|---|
AlwaysTrueRegExpEvaluator()
Creates a new AlwaysTrueRegExpEvaluator |
|
| Method Summary | |
|---|---|
boolean |
matches(java.lang.String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator |
void |
setExpression(java.lang.String rexpr)
Sets the regular expression to match against during a call to #matches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlwaysTrueRegExpEvaluator()
| Method Detail |
public void setExpression(java.lang.String rexpr)
setExpression in interface RegExpEvaluatorrexpr - the regular expressionpublic boolean matches(java.lang.String value)
matches in interface RegExpEvaluatorvalue - the String to check the production of
setExpression(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||