C# Class SpeakFriend.Utilities.ConditionNumericAbstract

Inheritance: Condition, IConditionNumeric
Show file Open project: teamaton/speak-lib

Public Properties

Property Type Description
MustBeGreaterThanOrEqualToZero bool

Public Methods

Method Description
AddToCriteria ( ICriteria criteria ) : void
GetCriterion ( ) : ICriterion
GetValue ( ) : object
IsActive ( ) : bool

Return true if this condition is set and contained in the ConditionList.

IsEqualTo ( ) : bool
IsGreaterThan ( ) : bool
IsLessThanOrEqual ( ) : bool
IsSet ( ) : bool

Returns true if this condition's value is set to anything else than the initial value; else false.

Protected Methods

Method Description
ConditionNumericAbstract ( ConditionContainer conditions ) : System
ConditionNumericAbstract ( ConditionContainer conditions, string propertyName ) : System
RemoveIfMinusOne ( object value ) : bool
SetQueryEqual ( ) : void
SetQueryGreater ( ) : void
SetQueryLess ( ) : void
SetQueryLessOrEqual ( ) : void

Method Details

AddToCriteria() public method

public AddToCriteria ( ICriteria criteria ) : void
criteria ICriteria
return void

ConditionNumericAbstract() protected method

protected ConditionNumericAbstract ( ConditionContainer conditions ) : System
conditions ConditionContainer
return System

ConditionNumericAbstract() protected method

protected ConditionNumericAbstract ( ConditionContainer conditions, string propertyName ) : System
conditions ConditionContainer
propertyName string
return System

GetCriterion() public method

public GetCriterion ( ) : ICriterion
return ICriterion

GetValue() public method

public GetValue ( ) : object
return object

IsActive() public method

Return true if this condition is set and contained in the ConditionList.
public IsActive ( ) : bool
return bool

IsEqualTo() public method

public IsEqualTo ( ) : bool
return bool

IsGreaterThan() public method

public IsGreaterThan ( ) : bool
return bool

IsLessThanOrEqual() public method

public IsLessThanOrEqual ( ) : bool
return bool

IsSet() public abstract method

Returns true if this condition's value is set to anything else than the initial value; else false.
public abstract IsSet ( ) : bool
return bool

RemoveIfMinusOne() protected method

protected RemoveIfMinusOne ( object value ) : bool
value object
return bool

SetQueryEqual() protected method

protected SetQueryEqual ( ) : void
return void

SetQueryGreater() protected method

protected SetQueryGreater ( ) : void
return void

SetQueryLess() protected method

protected SetQueryLess ( ) : void
return void

SetQueryLessOrEqual() protected method

protected SetQueryLessOrEqual ( ) : void
return void

Property Details

MustBeGreaterThanOrEqualToZero public property

Unset this value if for a less than comparison you do not automatically want to constrain that the value be greater than or equal to zero.
public bool MustBeGreaterThanOrEqualToZero
return bool