org.exolab.castor.util

Class JakartaRegExpEvaluator

public class JakartaRegExpEvaluator extends Object implements RegExpEvaluator

An implementation of the 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: 5951 $ $Date: 2004-02-14 02:16:35 -0700 (Sat, 14 Feb 2004) $

Author: Keith Visco

Constructor Summary
JakartaRegExpEvaluator()
Creates a new JakartaRegExpEvaluator
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

Constructor Detail

JakartaRegExpEvaluator

public JakartaRegExpEvaluator()
Creates a new JakartaRegExpEvaluator

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: JakartaRegExpEvaluator

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