Public Member Functions | Package Functions

org.exolab.castor.xml.validators.PatternValidator.DefaultRegExpEvaluator Class Reference

Inheritance diagram for org.exolab.castor.xml.validators.PatternValidator.DefaultRegExpEvaluator:
org.exolab.castor.util.RegExpEvaluator

List of all members.

Public Member Functions

void setExpression (String rexpr)
boolean matches (String value)

Package Functions

 DefaultRegExpEvaluator ()

Detailed Description

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

Author:
Keith Visco
Version:
Revision:
1.2
Date:
2004/12/11 09:13:45

Constructor & Destructor Documentation

org.exolab.castor.xml.validators.PatternValidator.DefaultRegExpEvaluator.DefaultRegExpEvaluator (  )  [package]

Creates a new DefaultRegExpValidator


Member Function Documentation

boolean org.exolab.castor.xml.validators.PatternValidator.DefaultRegExpEvaluator.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:
setExpression

Implements org.exolab.castor.util.RegExpEvaluator.

void org.exolab.castor.xml.validators.PatternValidator.DefaultRegExpEvaluator.setExpression ( String  rexpr  ) 

Sets the regular expression to match against during a call to matches

Parameters:
rexpr the regular expression

Implements org.exolab.castor.util.RegExpEvaluator.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties