22 using System.Collections.Generic;
28 namespace Ntp.Analyzer.Config.Syntax
41 var fixedRun = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordFixedRun) as BooleanSettingNode;
44 var pass = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordPass) as StringSettingNode ??
45 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordSmtpPass) as StringSettingNode;
46 var host = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordIp) as StringSettingNode ??
47 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordHost) as StringSettingNode ??
48 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordHostAddress) as StringSettingNode ??
49 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordSmtpHost) as StringSettingNode ??
50 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordAddress) as StringSettingNode;
51 var port = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordPort) as IntegerSettingNode ??
52 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordSmtpPort) as IntegerSettingNode;
53 var ssl = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordEnableSsl) as BooleanSettingNode;
54 var sender = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordSender) as StringSettingNode;
55 var recipient = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordRecipient) as StringSettingNode ??
56 Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordMail) as StringSettingNode;
57 var subject = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordSubject) as StringSettingNode;
77 CheckIsUnique(
new List<Symbol>
100 CheckOnlyOneIsPresent(
new List<Symbol>
106 CheckOnlyOneIsPresent(
new List<Symbol>
111 Symbol.KeywordHostAddress,
115 CheckOnlyOneIsPresent(
new List<Symbol>
121 CheckOnlyOneIsPresent(
new List<Symbol>
127 CheckOnlyOneIsPresent(
new List<Symbol>
133 CheckAllIsPresent(
new List<Symbol>
139 CheckOneIsPresent(
new List<Symbol>
145 CheckOneIsPresent(
new List<Symbol>
156 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordFrequency);
157 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordInitialRun);
158 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordFixedRun);
159 CheckTypeIs<StringSettingNode>(
Symbol.KeywordUser);
160 CheckTypeIs<StringSettingNode>(
Symbol.KeywordPass);
161 CheckTypeIs<StringSettingNode>(
Symbol.KeywordSmtpUser);
162 CheckTypeIs<StringSettingNode>(
Symbol.KeywordSmtpPass);
163 CheckTypeIs<StringSettingNode>(
Symbol.KeywordIp);
164 CheckTypeIs<StringSettingNode>(
Symbol.KeywordHost);
165 CheckTypeIs<StringSettingNode>(
Symbol.KeywordAddress);
166 CheckTypeIs<StringSettingNode>(
Symbol.KeywordSmtpHost);
167 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordPort);
168 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordSmtpPort);
169 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordEnableSsl);
170 CheckTypeIs<StringSettingNode>(
Symbol.KeywordSender);
171 CheckTypeIs<StringSettingNode>(
Symbol.KeywordRecipient);
172 CheckTypeIs<StringSettingNode>(
Symbol.KeywordSubject);
override void ValidateTypes()
Override to validates the types in this syntax node.
override NotifyConfiguration InternalCompile()
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
NotifySyntaxNode(string name, int line)