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.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
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