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.
Show file Open project: formicary/fpml-toolkit-csharp

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
PerformValidation ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool

Method Details

Validate() protected abstract method

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.
return bool

Validate() public method

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.
return bool

Validator() protected method

Constructs a Validator instance.
protected Validator ( ) : System
return System