C# 클래스 HandCoded.Validation.Rule

A Rule instance encapsulates a validation rule that can be tested against a XmlDocument.
상속: Validator
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
AppliesTo ( NodeIndex nodeIndex ) : bool

Determines if the Rule applies to a document but evaluating its Precondition.

ForName ( string name ) : Rule

Returns a reference to the named Rule instance if it exists.

보호된 메소드들

메소드 설명
Rule ( Precondition precondition, string name ) : System

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

Rule ( string name ) : System

Constructs a Rule that applies to any document.

메소드 상세

AppliesTo() 공개 메소드

Determines if the Rule applies to a document but evaluating its Precondition.
public AppliesTo ( NodeIndex nodeIndex ) : bool
nodeIndex HandCoded.Xml.NodeIndex The of the document.
리턴 bool

ForName() 공개 정적인 메소드

Returns a reference to the named Rule instance if it exists.
public static ForName ( string name ) : Rule
name string The name of the required Rule.
리턴 Rule

Rule() 보호된 메소드

Constructs a Rule with the given name and that applies in the circumstances defines by its Precondition.
protected Rule ( Precondition precondition, string name ) : System
precondition Precondition A instance.
name string The unique name for the rule.
리턴 System

Rule() 보호된 메소드

Constructs a Rule that applies to any document.
protected Rule ( string name ) : System
name string The unique name for the rule.
리턴 System