Package org.exolab.castor.util
Interface RegExpEvaluator
-
- All Known Implementing Classes:
AlwaysTrueRegExpEvaluator
,JakartaOroEvaluator
,JakartaRegExpEvaluator
,SunRegExpEvaluator
,XercesRegExpEvaluator
public interface RegExpEvaluator
A simple interface for evaluating Regular expressions.- Version:
- $Revision: 7292 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches(java.lang.String value)
Returns true if the given String matches the regular expression of thisRegExpEvaluator
.void
setExpression(java.lang.String rexpr)
Sets the regular expression to match against during a call tomatches(java.lang.String)
.
-
-
-
Method Detail
-
matches
boolean matches(java.lang.String value)
Returns true if the given String matches the regular expression of thisRegExpEvaluator
.- Parameters:
value
- the String to check the production of- Returns:
- true if the given string matches the regular expression of this
RegExpEvaluator
- See Also:
setExpression(java.lang.String)
-
setExpression
void setExpression(java.lang.String rexpr)
Sets the regular expression to match against during a call tomatches(java.lang.String)
.- Parameters:
rexpr
- the regular expression
-
-