org.exolab.castor.xml.validators

Class PatternValidator.DefaultRegExpEvaluator

Enclosing Class:
PatternValidator
Implemented Interfaces:
RegExpEvaluator

(package private) class PatternValidator.DefaultRegExpEvaluator
extends java.lang.Object
implements RegExpEvaluator

A simple implementation of a regular expression validator which always returns false.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:52 $
Author:
Keith Visco

Constructor Summary

DefaultRegExpEvaluator()
Creates a new DefaultRegExpValidator

Method Summary

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

Constructor Details

DefaultRegExpEvaluator

(package private)  DefaultRegExpEvaluator()
Creates a new DefaultRegExpValidator

Method Details

matches

public boolean matches(String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator
Specified by:
matches in interface RegExpEvaluator
Parameters:
value - the String to check the production of
Returns:
true if the given string matches the regular expression of this RegExpEvaluator

setExpression

public void setExpression(String rexpr)
Sets the regular expression to match against during a call to #matches
Specified by:
setExpression in interface RegExpEvaluator
Parameters:
rexpr - the regular expression

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