Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Note.cs
1using System.Threading.Tasks;
2using System.Xml;
3
5{
9 public abstract class Note : ActionNode
10 {
11 private Content content;
12 private Personal personal;
13
17 public Note()
18 : base()
19 {
20 }
21
25 public Content Content => this.content;
26
30 public Personal Personal => this.personal;
31
36 public override async Task Parse(XmlElement Xml)
37 {
38 await base.Parse(Xml);
39
41 new System.Type[]
42 {
43 typeof(Content),
44 typeof(Personal)
45 },
46 new bool[]
47 {
48 true,
49 false
50 });
51 }
52
56 protected override void OnChildNodesUpdated()
57 {
58 base.OnChildNodesUpdated();
59
60 this.content = this.GetValueElement<Content>();
61 this.personal = this.GetValueElement<Personal>();
62 }
63 }
64}
Abstract base class for State-Machine action nodes.
Definition: ActionNode.cs:9
Abstract base class for note actions.
Definition: Note.cs:10
Note()
Abstract base class for note actions.
Definition: Note.cs:17
override void OnChildNodesUpdated()
Method called whenever ChildNodes is updated.
Definition: Note.cs:56
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition: Note.cs:36
void ConvertValueAttributesToElements(XmlElement Xml, Type[] ValueTypes, bool[] Required)
Converts value attributes to parsed elements. The XML definition has to be parsed before,...