org.exolab.castor.util

Class XercesRegExpEvaluator

public class XercesRegExpEvaluator extends Object implements 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: 5951 $ $Date: 2006-01-16 13:22:58 -0700 (Mon, 16 Jan 2006) $

Author: Keith Visco Takashi Okamoto

Field Summary
Object_regexp
The Regular expression
Constructor Summary
XercesRegExpEvaluator()
Creates a new XercesRegExpEvaluator
Method Summary
booleanmatches(String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator
voidsetExpression(String rexpr)
Sets the regular expression to match against during a call to #matches

Field Detail

_regexp

Object _regexp
The Regular expression

Constructor Detail

XercesRegExpEvaluator

public XercesRegExpEvaluator()
Creates a new XercesRegExpEvaluator

Method Detail

matches

public boolean matches(String value)
Returns true if the given String is matched by the regular expression of this 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: XercesRegExpEvaluator

setExpression

public void setExpression(String rexpr)
Sets the regular expression to match against during a call to #matches

Parameters: rexpr the regular expression

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com