zplCore.comzplCore.com

ComplianceRule

public abstract class ComplianceRule

A compliance rule: checks one rendered ComplianceLabel and reports findings. Derive from it, or use ComplianceRule.Create with a delegate, to write custom rules; put them into a ComplianceRulePack.

Properties

PropertyTypeDescription
Info { get; }ComplianceRuleInfoStable id, title, citation and default severity.

Methods

Method SignatureReturnsDescription
# Check(ComplianceLabel label, ComplianceReporter report)voidChecks one label; report problems through report.
static # Create(ComplianceRuleInfo info, Action<ComplianceLabel, ComplianceReporter> check)ComplianceRuleA rule from a delegate.
# ToString()string