C# 클래스 HandCoded.FpML.Validation.SchemeRule

The SchemeRule class provides the logic to validate FpML scheme code values for all versions of FpML.
상속: HandCoded.Validation.Rule
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
SchemeRule ( Precondition precondition, string name, string elementNames, string attributeName ) : System

Constructs a SchemeRule with the given name and that applies in the circumstances defined by its Precondition.

SchemeRule ( Precondition precondition, string name, string parentNames, string elementNames, string attributeName ) : System

Constructs a SchemeRule with the given name and that applies in the circumstances defined by its Precondition.

SchemeRule ( string name, string elementNames, string attributeName ) : System

Constructs a SchemeRule that applies to any document.

SchemeRule ( string name, string parentName, string elementName, string attributeName ) : System

Constructs a SchemeRule 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 or a default on the root element for pre FpML-4-0 instances.

메소드 상세

SchemeRule() 공개 메소드

Constructs a SchemeRule with the given name and that applies in the circumstances defined by its Precondition.
public SchemeRule ( 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

SchemeRule() 공개 메소드

Constructs a SchemeRule with the given name and that applies in the circumstances defined by its Precondition.
public SchemeRule ( Precondition precondition, string name, string parentNames, string elementNames, string attributeName ) : System
precondition HandCoded.Validation.Precondition A instance.
name string The unique name for the rule.
parentNames string The local names of the parent elements or null.
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

SchemeRule() 공개 메소드

Constructs a SchemeRule that applies to any document.
public SchemeRule ( string name, string elementNames, string attributeName ) : System
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

SchemeRule() 공개 메소드

Constructs a SchemeRule that applies to any document.
public SchemeRule ( string name, string parentName, string elementName, string attributeName ) : System
name string The unique name for the rule.
parentName string The local name of the parent XmlElement.
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 or a default on the root element for pre FpML-4-0 instances.
protected Validate ( XmlNodeList list, ValidationErrorHandler errorHandler ) : bool
list System.Xml.XmlNodeList An of elements to check.
errorHandler ValidationErrorHandler The used to report issues.
리턴 bool