Méthode | Description | |
---|---|---|
Add ( |
Adds the indicated Rule instance to the RuleSet A Rule may be referenced by several RuleSet instances simultaneously. If the Rule has the same name as a previously added one then it will replace it. This feature can be used to overwrite standard rules with customized ones.
|
|
Add ( |
Adds the Rule instances that comprise another RuleSet to this one.
|
|
ForName ( string name ) : |
Returns a reference to the named
|
|
Remove ( |
Attempts to remove a given Rule from the collection held by the RuleSet.
|
|
Remove ( string name ) : |
Attempts to remove a Rule with the given name from the collection held by the RuleSet.
|
|
RuleSet ( string name ) : System |
Constructs a named empty RuleSet.
|
Méthode | Description | |
---|---|---|
Validate ( |
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 delegate passed as an argument. Note that test returns |
Méthode | Description | |
---|---|---|
ParseRuleSets ( string uri ) : void |
Parse the RuleSet definitions in the configuration file indicated by the URI.
|
|
RuleSet ( ) : System |
Causes the RuleSet class to try and bootstrap the business rules from a configuration file.
|
public Add ( |
||
ruleSet | The RuleSet to be added. | |
Résultat | void |
public static ForName ( string name ) : |
||
name | string | The name of the required |
Résultat |
public Remove ( |
||
rule | The |
|
Résultat |
public Remove ( string name ) : |
||
name | string | The name of the |
Résultat |
protected Validate ( |
||
nodeIndex | The |
|
errorHandler | ValidationErrorHandler | An |
Résultat | bool |