C# Класс HandCoded.Validation.Validator

The Validator class defines a standard API for requesting the validation of the business data content of an XML instance document.
Показать файл Открыть проект

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

Метод Описание
Validate ( XmlDocument document, ValidationErrorHandler errorHandler ) : bool

Determines if the given XmlDocument instance's business data content passes a validation test. If errors are detected these will be reported through the ValidationErrorHandler instance passed as an argument.

Note that test returns true if it does not fail, including circumstances when the test is inapplicable to the XmlDocument under examination.

Защищенные методы

Метод Описание
Validate ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool

Determines if the XmlDocument instance indexed by the provided NodeIndex has business data content that passes a validation test. If errors are detected they will be reported through the ValidationErrorHandler instance passed as an argument.

Note that test returns true if it does not fail, including circumstances when the test is inapplicable to the XmlDocument under examination.

Validator ( ) : System

Constructs a Validator instance.

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

Метод Описание
PerformValidation ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool

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

Validate() защищенный абстрактный Метод

Determines if the XmlDocument instance indexed by the provided NodeIndex has business data content that passes a validation test. If errors are detected they will be reported through the ValidationErrorHandler instance passed as an argument.
Note that test returns true if it does not fail, including circumstances when the test is inapplicable to the XmlDocument under examination.
protected abstract Validate ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool
nodeIndex HandCoded.Xml.NodeIndex The instance to examine.
errorHandler ValidationErrorHandler An instance used to report /// validation failures.
Результат bool

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

Determines if the given XmlDocument instance's business data content passes a validation test. If errors are detected these will be reported through the ValidationErrorHandler instance passed as an argument.
Note that test returns true if it does not fail, including circumstances when the test is inapplicable to the XmlDocument under examination.
public Validate ( XmlDocument document, ValidationErrorHandler errorHandler ) : bool
document System.Xml.XmlDocument The instance to examine.
errorHandler ValidationErrorHandler An delegate used to report /// validation failures.
Результат bool

Validator() защищенный Метод

Constructs a Validator instance.
protected Validator ( ) : System
Результат System