C# Class HandCoded.Validation.Validator

The Validator class defines a standard API for requesting the validation of the business data content of an XML instance document.
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
PerformValidation ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool

Method Details

Validate() protected abstract méthode

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.
Résultat bool

Validate() public méthode

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.
Résultat bool

Validator() protected méthode

Constructs a Validator instance.
protected Validator ( ) : System
Résultat System