C# Class HandCoded.Validation.Precondition

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

Méthodes publiques

Свойство Type Description
ALWAYS Precondition
NEVER Precondition

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Precondition ( ) : System

Constructs a Precondition instance.

Method Details

And() public static méthode

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.
Résultat Precondition

Evaluate() public abstract méthode

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.
Résultat bool

Not() public static méthode

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.
Résultat Precondition

Or() public static méthode

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.
Résultat Precondition

Precondition() protected méthode

Constructs a Precondition instance.
protected Precondition ( ) : System
Résultat System

Property Details

ALWAYS public_oe static_oe property

A Precondition instance that is always true.
public static Precondition,HandCoded.Validation ALWAYS
Résultat Precondition

NEVER public_oe static_oe property

A Precondition instance that is always false.
public static Precondition,HandCoded.Validation NEVER
Résultat Precondition