C# Class HandCoded.FpML.Validation.ContentPrecondition

The ContentPrecondition checks if the document being processed contains specific elements determined from either their XML Schema type or from a list (if type information is not available).
Inheritance: HandCoded.Validation.Precondition
Exibir arquivo Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
ContentPrecondition ( string elements, string types ) : System

Constructions a ProductPrecondition instance that checks documents containing the indicated elements or types.

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

Evaluates this Precondition against the contents of the indicated NodeIndex.

Method Details

ContentPrecondition() public method

Constructions a ProductPrecondition instance that checks documents containing the indicated elements or types.
public ContentPrecondition ( string elements, string types ) : System
elements string
types string
return System

Evaluate() public method

Evaluates this Precondition against the contents of the indicated NodeIndex.
public 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