C# 클래스 HandCoded.Validation.ValidationErrorSet

A ValidationErrorSet instance can be used to capture syntax or semantic validation errors generated during XML parsing or business rule evaluation.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
AddError ( String code, XmlNode context, String description, String ruleName, String additionalData ) : void

Creates a ValidationError from the parameters and adds it to the set.

AddError ( String code, int line, int column, String description, String ruleName, String additionalData ) : void

Creates a ValidationError from the parameters and adds it to the set.

AddError ( ValidationError error ) : void

Adds the indicated ValidationError instance to the set.

Clear ( ) : void

Clears the set so that it can be reused.

ValidationErrorSet ( ) : System

Constructs an empty ValidationErrorSet.

this ( int index ) : ValidationError

Access the specified ValidationError within the set.

메소드 상세

AddError() 공개 메소드

Creates a ValidationError from the parameters and adds it to the set.
public AddError ( 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 Node 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

AddError() 공개 메소드

Creates a ValidationError from the parameters and adds it to the set.
public AddError ( String code, int line, int column, String description, String ruleName, String additionalData ) : void
code String The FpML defined reason code associated with the error.
line int The line number where the problem was detected.
column int The column number where the problem was detected.
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

AddError() 공개 메소드

Adds the indicated ValidationError instance to the set.
public AddError ( ValidationError error ) : void
error ValidationError The to store.
리턴 void

Clear() 공개 메소드

Clears the set so that it can be reused.
public Clear ( ) : void
리턴 void

ValidationErrorSet() 공개 메소드

Constructs an empty ValidationErrorSet.
public ValidationErrorSet ( ) : System
리턴 System

this() 공개 메소드

Access the specified ValidationError within the set.
public this ( int index ) : ValidationError
index int The required item index.
리턴 ValidationError