Package org.exolab.castor.util
Class JakartaRegExpEvaluator
java.lang.Object
org.exolab.castor.util.JakartaRegExpEvaluator
- All Implemented Interfaces:
RegExpEvaluator
An implementation of
RegExpEvaluator
that uses the Jakarta Regular Expression library.
For more information about the Jakarta RE library please visit:
http://jakarta.apache.org/regexp/- Version:
- $Revision$ $Date: 2004-02-14 02:16:35 -0700 (Sat, 14 Feb 2004) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the given String matches the regular expression of thisRegExpEvaluator
.void
setExpression
(String rexpr) Sets the regular expression to match against during a call toRegExpEvaluator.matches(java.lang.String)
.
-
Constructor Details
-
JakartaRegExpEvaluator
public JakartaRegExpEvaluator()
-
-
Method Details
-
setExpression
Sets the regular expression to match against during a call toRegExpEvaluator.matches(java.lang.String)
.- Specified by:
setExpression
in interfaceRegExpEvaluator
- Parameters:
rexpr
- the regular expression- See Also:
-
matches
Returns true if the given String matches the regular expression of thisRegExpEvaluator
.- 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:
-