C# Class ExoRule.Validation.RangeRule

Applies conditions when the value of a ModelProperty is not within a specified range.
Inheritance: PropertyRule
Mostrar archivo Open project: vc3/ExoRule

Public Methods

Method Description
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, Error error, RuleInvocationType invocationTypes ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, RuleInvocationType invocationTypes ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, string errorMessage ) : System
RangeRule ( string rootType, string property, ModelExpression minimum, ModelExpression maximum, string errorMessage ) : System
RangeRule ( string rootType, string property, string minExpression, string maxExpression, string errorMessage ) : System

Protected Methods

Method Description
ConditionApplies ( ModelInstance root ) : bool

Private Methods

Method Description
CreateError ( string property, IComparable minimum, IComparable maximum ) : ConditionType>.Func
SetRange ( IComparable minimum, IComparable maximum ) : void
SetRange ( ModelExpression minimum, ModelExpression maximum ) : void

Method Details

ConditionApplies() protected method

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
return bool

RangeRule() public method

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum ) : System
rootType string
property string
minimum IComparable
maximum IComparable
return System

RangeRule() public method

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, Error error, RuleInvocationType invocationTypes ) : System
rootType string
property string
minimum IComparable
maximum IComparable
error Error
invocationTypes RuleInvocationType
return System

RangeRule() public method

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, RuleInvocationType invocationTypes ) : System
rootType string
property string
minimum IComparable
maximum IComparable
invocationTypes RuleInvocationType
return System

RangeRule() public method

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, string errorMessage ) : System
rootType string
property string
minimum IComparable
maximum IComparable
errorMessage string
return System

RangeRule() public method

public RangeRule ( string rootType, string property, ModelExpression minimum, ModelExpression maximum, string errorMessage ) : System
rootType string
property string
minimum ModelExpression
maximum ModelExpression
errorMessage string
return System

RangeRule() public method

public RangeRule ( string rootType, string property, string minExpression, string maxExpression, string errorMessage ) : System
rootType string
property string
minExpression string
maxExpression string
errorMessage string
return System