C# Class HandCoded.Validation.Precondition

A Precondition instance is used to determine the applicability of a Rule to a XmlDocument.
Mostra file Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Properties

Property Type Description
ALWAYS Precondition
NEVER Precondition

Public Methods

Method Description
And ( Precondition lhs, Precondition rhs ) : Precondition

Creates a new Precondition that is the logical AND of the given arguments.

Evaluate ( NodeIndex nodeIndex, bool>.Dictionary cache ) : bool

Evaluates this Precondition against the contents of the indicated NodeIndex.

Not ( Precondition pre ) : Precondition

Creates a new Precondition that is the logical NOT of the given arguments.

Or ( Precondition lhs, Precondition rhs ) : Precondition

Creates a new Precondition that is the logical OR of the given arguments.

Protected Methods

Method Description
Precondition ( ) : System

Constructs a Precondition instance.

Method Details

And() public static method

Creates a new Precondition that is the logical AND of the given arguments.
public static And ( Precondition lhs, Precondition rhs ) : Precondition
lhs Precondition The left hand side Precondition.
rhs Precondition The right hand side Precondition.
return Precondition

Evaluate() public abstract method

Evaluates this Precondition against the contents of the indicated NodeIndex.
public abstract Evaluate ( NodeIndex nodeIndex, bool>.Dictionary cache ) : bool
nodeIndex HandCoded.Xml.NodeIndex The of a .
cache bool>.Dictionary A cache of previously evaluated precondition results.
return bool

Not() public static method

Creates a new Precondition that is the logical NOT of the given arguments.
public static Not ( Precondition pre ) : Precondition
pre Precondition The Precondition to be inverted.
return Precondition

Or() public static method

Creates a new Precondition that is the logical OR of the given arguments.
public static Or ( Precondition lhs, Precondition rhs ) : Precondition
lhs Precondition The left hand side Precondition.
rhs Precondition The right hand side Precondition.
return Precondition

Precondition() protected method

Constructs a Precondition instance.
protected Precondition ( ) : System
return System

Property Details

ALWAYS public_oe static_oe property

A Precondition instance that is always true.
public static Precondition,HandCoded.Validation ALWAYS
return Precondition

NEVER public_oe static_oe property

A Precondition instance that is always false.
public static Precondition,HandCoded.Validation NEVER
return Precondition