Public Member Functions

org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator Class Reference

Inheritance diagram for org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator:
org.exolab.castor.util.RegExpEvaluator

List of all members.

Public Member Functions

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

Detailed Description

A simple implementation of a regular expression validator which always returns true. This class can be used to "supress" validation exceptions when no regular expression validator has been configured.

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

Constructor & Destructor Documentation

org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator.AlwaysTrueRegExpEvaluator (  ) 

Member Function Documentation

boolean org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator.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.util.AlwaysTrueRegExpEvaluator.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