16 public const string RuleNamespace =
"http://waher.se/Schema/Provisioning/Rules.xsd";
18 private Rule[] childRules =
null;
33 get => this.childRules;
34 set => this.childRules = value;
46 if (!(this.childRules is
null))
48 foreach (
Rule Rule2
in this.childRules)
65 if (this.childRules is
null)
66 this.childRules =
new Rule[] {
Rule };
69 int c = this.childRules.Length;
70 Array.Resize(ref this.childRules, c + 1);
71 this.childRules[c] =
Rule;
79 public abstract void Export(XmlWriter Output);
87 if (!(this.childRules is
null))
89 foreach (
Rule Rule in this.childRules)
Abstract base class for rules.
abstract void Export(XmlWriter Output)
Exports the rule.
void AddChildRule(Rule Rule)
Adds a child rule.
Rule[] ChildRules
Child rules, if applicable.
const string RuleNamespace
http://waher.se/Schema/Provisioning/Rules.xsd
Rule()
Abstract base class for decisions.
virtual void ExportChildren(XmlWriter Output)
Exports child rules.
virtual ? bool Evaluate(Context Context)
Tries to evaluate the rule.
TypeNameSerialization
How the type name should be serialized.