C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

SemanticError() публичный Метод

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.
Результат void

ValidationErrorSetAdapter() публичный Метод

Construct a ValidationErrorSetAdapter which will capture errors and store them in the indicated ValidationErrorSet.
public ValidationErrorSetAdapter ( ValidationErrorSet errorSet ) : System
errorSet ValidationErrorSet
Результат System