org.exolab.castor.util
Interface RegExpEvaluator

All Known Implementing Classes:
AlwaysTrueRegExpEvaluator, JakartaOroEvaluator, JakartaRegExpEvaluator, PatternValidator.DefaultRegExpEvaluator, XercesRegExpEvaluator

public interface RegExpEvaluator

A simple interface for evaluating Regular expressions

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:06 $
Author:
Keith Visco

Method Summary
 boolean matches(java.lang.String value)
          Returns true if the given String is matched by the regular expression of this RegExpEvaluator
 void setExpression(java.lang.String rexpr)
          Sets the regular expression to match against during a call to #matches
 

Method Detail

matches

boolean matches(java.lang.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:
setExpression(java.lang.String)

setExpression

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

Parameters:
rexpr - the regular expression


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