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.
Показать файл Открыть проект Примеры использования класса

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

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