|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator
public class AlwaysTrueRegExpEvaluator
A simple implementation of a regular expression validator which always returns true. This class can be used to "suppress" validation exceptions when no regular expression validator has been configured.
| Constructor Summary | |
|---|---|
AlwaysTrueRegExpEvaluator()
Creates a new AlwaysTrueRegExpEvaluator. |
|
| Method Summary | |
|---|---|
boolean |
matches(String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator. |
void |
setExpression(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(String rexpr)
setExpression in interface RegExpEvaluatorrexpr - the regular expressionpublic boolean matches(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 | |||||||||