C# Класс HandCoded.FpML.Validation.BrokenSchemeRule

The BrokenSchemeRule class provides the logic to validate FpML scheme code values where the default attribute on the root node was omitted by mistake.
Наследование: HandCoded.Validation.Rule
Показать файл Открыть проект

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

Метод Описание
BrokenSchemeRule ( Precondition precondition, string name, string elementNames, string attributeName ) : System

Constructs a BrokenSchemeRule with the given name and that applies in the circumstances defines by its Precondition.

BrokenSchemeRule ( string name, string elementName, string attributeName ) : System

Constructs a BrokenSchemeRule that applies to any document.

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

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

Validates all the elements registered at construction using the NodeIndex to locate them as quickly as possible.

Validate ( XmlNodeList list, ValidationErrorHandler errorHandler ) : bool

Validates the data content of a set of elements by locating the scheme identified by the scheme attribute.

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

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

Constructs a BrokenSchemeRule with the given name and that applies in the circumstances defines by its Precondition.
public BrokenSchemeRule ( Precondition precondition, string name, string elementNames, string attributeName ) : System
precondition HandCoded.Validation.Precondition A instance.
name string The unique name for the rule.
elementNames string An array of element names using the same scheme type for validation.
attributeName string The name of the attribute containing the scheme URI.
Результат System

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

Constructs a BrokenSchemeRule that applies to any document.
public BrokenSchemeRule ( string name, string elementName, string attributeName ) : System
name string The unique name for the rule.
elementName string An element name that uses a scheme for validation.
attributeName string The name of the attribute containing the scheme URI.
Результат System

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

Validates all the elements registered at construction using the NodeIndex to locate them as quickly as possible.
protected Validate ( NodeIndex nodeIndex, ValidationErrorHandler errorHandler ) : bool
nodeIndex HandCoded.Xml.NodeIndex The of the test document.
errorHandler ValidationErrorHandler The used to report issues.
Результат bool

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

Validates the data content of a set of elements by locating the scheme identified by the scheme attribute.
protected Validate ( XmlNodeList list, ValidationErrorHandler errorHandler ) : bool
list System.Xml.XmlNodeList An of elements to check.
errorHandler ValidationErrorHandler The used to report issues.
Результат bool