C# Class Spring.Core.RegularExpressionCriteria

A base class for all Spring.Core.ICriteria implementations that are regular expression based.
Inheritance: ICriteria
Show file Open project: spring-projects/spring-net

Public Methods

Method Description
IsSatisfied ( object datum ) : bool

Does the supplied datum satisfy the criteria encapsulated by this instance?

Protected Methods

Method Description
IsMatch ( string input ) : bool

Convenience method that calls the System.Text.RegularExpressions.Regex.IsMatch(string) on the supplied input.

RegularExpressionCriteria ( ) : System.Text.RegularExpressions

Creates a new instance of the RegularExpressionCriteria class.

RegularExpressionCriteria ( string pattern ) : System.Text.RegularExpressions

Creates a new instance of the RegularExpressionCriteria class.

Method Details

IsMatch() protected method

Convenience method that calls the System.Text.RegularExpressions.Regex.IsMatch(string) on the supplied input.
protected IsMatch ( string input ) : bool
input string The input to match against.
return bool

IsSatisfied() public abstract method

Does the supplied datum satisfy the criteria encapsulated by this instance?
public abstract IsSatisfied ( object datum ) : bool
datum object The datum to be checked by this criteria instance.
return bool

RegularExpressionCriteria() protected method

Creates a new instance of the RegularExpressionCriteria class.
protected RegularExpressionCriteria ( ) : System.Text.RegularExpressions
return System.Text.RegularExpressions

RegularExpressionCriteria() protected method

Creates a new instance of the RegularExpressionCriteria class.
protected RegularExpressionCriteria ( string pattern ) : System.Text.RegularExpressions
pattern string /// The regular expression pattern to be applied. ///
return System.Text.RegularExpressions