Package org.exolab.castor.util
Class XercesRegExpEvaluator
java.lang.Object
org.exolab.castor.util.XercesRegExpEvaluator
- All Implemented Interfaces:
RegExpEvaluator
An implementation of the XercesRegExpEvaluator that uses the
Regular Expression library in Xerces. For more information
about the Xerces Regular Expression library please visit:
http://xml.apache.org/xerces-j/apiDocs/org/apache/xerces/utils/regex/RegularExpression.html
- Version:
- $Revision: 8788 $ $Date: 2006-01-16 13:22:58 -0700 (Mon, 16 Jan 2006) $
- Author:
- Keith Visco, Takashi Okamoto
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the given String is matched by the regular expression of this RegExpEvaluatorvoidsetExpression(String rexpr) Sets the regular expression to match against during a call to #matches
-
Field Details
-
_regexp
Object _regexpThe Regular expression
-
-
Constructor Details
-
XercesRegExpEvaluator
public XercesRegExpEvaluator()Creates a new XercesRegExpEvaluator
-
-
Method Details
-
setExpression
Sets the regular expression to match against during a call to #matches- Specified by:
setExpressionin interfaceRegExpEvaluator- Parameters:
rexpr- the regular expression
-
matches
Returns true if the given String is matched by the regular expression of this RegExpEvaluator- Specified by:
matchesin 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:
-