C# Class HandCoded.Validation.ValidationErrorSetAdapter

The ValidationErrorSetAdapter class provides implementations of the delegate functions used by both the XML parse and the business rule validator that capture the errors into an ValidationErrorSet.
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Méthodes publiques

Méthode Description
SemanticError ( string code, XmlNode context, string description, string ruleName, string additionalData ) : void

Captures the details of a semantic error in the error set.

This function can be used as the delegate in validation invocations.

ValidationErrorSetAdapter ( ValidationErrorSet errorSet ) : System

Construct a ValidationErrorSetAdapter which will capture errors and store them in the indicated ValidationErrorSet.

Private Methods

Méthode Description
SyntaxError ( object sender, ValidationEventArgs args ) : void

Captures the details of a syntax error in the error set.

This function can be used as the delegate for an XML parser invocation.

Method Details

SemanticError() public méthode

Captures the details of a semantic error in the error set.
This function can be used as the delegate in validation invocations.
public SemanticError ( string code, XmlNode context, string description, string ruleName, string additionalData ) : void
code string The FpML defined reason code associated with the error.
context System.Xml.XmlNode The DOM containing the erroneous data.
description string A textual description of the problem detected.
ruleName string The code for the FpML validation rule that has failed.
additionalData string Any additional data that may assist in problem solving.
Résultat void

ValidationErrorSetAdapter() public méthode

Construct a ValidationErrorSetAdapter which will capture errors and store them in the indicated ValidationErrorSet.
public ValidationErrorSetAdapter ( ValidationErrorSet errorSet ) : System
errorSet ValidationErrorSet
Résultat System