Package org.exolab.castor.xml.util
Class AlwaysTrueRegExpEvaluator
java.lang.Object
org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator
- All Implemented Interfaces:
RegExpEvaluator
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.
- Version:
- $Revision: 6671 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
Constructor Details
-
AlwaysTrueRegExpEvaluator
public AlwaysTrueRegExpEvaluator()Creates a new AlwaysTrueRegExpEvaluator.
-
-
Method Details
-
setExpression
Sets the regular expression to match against during a call to #matches.- Specified by:
setExpression
in interfaceRegExpEvaluator
- Parameters:
rexpr
- the regular expression
-
matches
Returns true if the given String is matched by the regular expression of this RegExpEvaluator.- Specified by:
matches
in interfaceRegExpEvaluator
- Parameters:
value
- the String to check the production of- Returns:
- true if the given string matches the regular expression of this RegExpEvaluator
- See Also:
-