org.exolab.castor.xml.validators

Class PatternValidator.DefaultRegExpEvaluator

class PatternValidator.DefaultRegExpEvaluator extends Object implements RegExpEvaluator

A simple implementation of a regular expression validator which always returns false.

Version: $Revision: 5951 $ $Date: 2004-12-11 02:13:52 -0700 (Sat, 11 Dec 2004) $

Author: Keith Visco

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

DefaultRegExpEvaluator

DefaultRegExpEvaluator()
Creates a new DefaultRegExpValidator

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

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