Line | |
---|
1 |
|
---|
2 | using System;
|
---|
3 | using System.Xml;
|
---|
4 | using System.Xml.Serialization;
|
---|
5 | using System.IO;
|
---|
6 |
|
---|
7 |
|
---|
8 | namespace Netron.GraphLib.IO.NML {
|
---|
9 |
|
---|
10 | /// <summary>
|
---|
11 | /// XML wrapper for the key-type
|
---|
12 | /// </summary>
|
---|
13 | [XmlType(IncludeInSchema=true, TypeName="key.type")]
|
---|
14 | [XmlRoot(ElementName="key", IsNullable=false, DataType="")]
|
---|
15 | public class KeyType {
|
---|
16 | #region Fields
|
---|
17 | /// <summary>
|
---|
18 | /// the default type
|
---|
19 | /// </summary>
|
---|
20 | private DefaultType mDefault;
|
---|
21 | /// <summary>
|
---|
22 | /// the ide
|
---|
23 | /// </summary>
|
---|
24 | private string id;
|
---|
25 | /// <summary>
|
---|
26 | /// the description
|
---|
27 | /// </summary>
|
---|
28 | private string mDescription;
|
---|
29 | /// <summary>
|
---|
30 | /// the for key-type
|
---|
31 | /// </summary>
|
---|
32 | private KeyForType mFor;
|
---|
33 | #endregion
|
---|
34 |
|
---|
35 | #region Properties
|
---|
36 | /// <summary>
|
---|
37 | /// Gets or sets the description
|
---|
38 | /// </summary>
|
---|
39 | [XmlElement(ElementName="desc")]
|
---|
40 | public virtual string Desc {
|
---|
41 | get {
|
---|
42 | return this.mDescription;
|
---|
43 | }
|
---|
44 | set {
|
---|
45 | this.mDescription = value;
|
---|
46 | }
|
---|
47 | }
|
---|
48 |
|
---|
49 |
|
---|
50 | /// <summary>
|
---|
51 | /// Gets or sets the default type
|
---|
52 | /// </summary>
|
---|
53 | [XmlElement(ElementName="default")]
|
---|
54 | public virtual DefaultType Default {
|
---|
55 | get {
|
---|
56 | return this.mDefault;
|
---|
57 | }
|
---|
58 | set {
|
---|
59 | this.mDefault = value;
|
---|
60 | }
|
---|
61 | }
|
---|
62 |
|
---|
63 |
|
---|
64 | /// <summary>
|
---|
65 | /// Gets or sets the id
|
---|
66 | /// </summary>
|
---|
67 | [XmlAttribute(AttributeName="id")]
|
---|
68 | public virtual string ID {
|
---|
69 | get {
|
---|
70 | return this.id;
|
---|
71 | }
|
---|
72 | set {
|
---|
73 | this.id = value;
|
---|
74 | }
|
---|
75 | }
|
---|
76 |
|
---|
77 | /// <summary>
|
---|
78 | /// Gets or sets the for key-type
|
---|
79 | /// </summary>
|
---|
80 |
|
---|
81 | [XmlAttribute(AttributeName="for")]
|
---|
82 | public virtual KeyForType For {
|
---|
83 | get {
|
---|
84 | return this.mFor;
|
---|
85 | }
|
---|
86 | set {
|
---|
87 | this.mFor = value;
|
---|
88 | }
|
---|
89 | }
|
---|
90 | #endregion
|
---|
91 | }
|
---|
92 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.