org.exolab.castor.util
Class SunRegExpEvaluator
java.lang.Object
org.exolab.castor.util.SunRegExpEvaluator
- All Implemented Interfaces:
- RegExpEvaluator
public class SunRegExpEvaluator
- extends Object
- implements RegExpEvaluator
An implementation of RegExpEvaluator that uses the Java Regular
Expression library.
- Since:
- 1.3.2
- Author:
- George Varghese
|
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 |
SunRegExpEvaluator
public SunRegExpEvaluator()
setExpression
public void setExpression(String rexpr)
- Sets the regular expression to match against during a call to #matches
- Specified by:
setExpression in interface RegExpEvaluator
- Parameters:
rexpr - the regular expression
matches
public boolean matches(String value)
- Returns true if the given String is matched by the regular expression of
this RegExpEvaluator
- Specified by:
matches in interface RegExpEvaluator
- 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)
Copyright © 2011. All Rights Reserved.