Free cookie consent management tool by TermsFeed Policy Generator

source: tags/3.3.1/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/IO/NML/DataType.cs @ 13398

Last change on this file since 13398 was 2769, checked in by mkommend, 14 years ago

added unused files for netron (ticket #867)

File size: 2.4 KB
Line 
1
2    using System;
3    using System.Xml;
4    using System.Xml.Serialization;
5    using System.IO;
6   
7namespace Netron.GraphLib.IO.NML {   
8   
9    /// <summary>
10    /// Generic XML wrapper for any diagram data
11    /// </summary>
12    [XmlType(IncludeInSchema=false, TypeName="aaaaaaa")]
13    [XmlRoot(ElementName="property", IsNullable=false, DataType="")]
14    public class DataType {
15
16    #region Fields
17    /// <summary>
18    /// data collection
19    /// </summary>
20        private DataCollection mValue = new DataCollection();
21    /// <summary>
22    /// the key
23    /// </summary>
24        private string mName;
25    /// <summary>
26    /// the mIsCollection
27    /// </summary>
28        private bool mIsCollection;
29
30    #endregion
31
32    #region Properties
33
34    /// <summary>
35    /// Gets or sets the key of the data type
36    /// </summary>
37        [XmlAttribute(AttributeName="Name")]
38        public virtual string Name {
39            get {
40                return this.mName;
41            }
42            set {
43                this.mName = value;
44            }
45        }
46       
47       
48        /// <summary>
49        /// Gets or sets the mIsCollection
50        /// </summary>
51        [XmlAttribute(AttributeName="IsCollection")]
52        public virtual bool IsCollection {
53            get {
54                return this.mIsCollection;
55            }
56            set {
57                this.mIsCollection = value;
58            }
59        }
60       
61       
62        /// <summary>
63        /// Gets or sets the text
64        /// </summary>
65       
66    [XmlElement(ElementName="Collection", Type=typeof(DataCollection), IsNullable=false)]
67    [XmlElement(ElementName="string", Type=typeof(string), IsNullable=false)]
68    [XmlElement(ElementName="Data", Type=typeof(DataType), IsNullable=false)]
69    public virtual DataCollection Value {
70            get {
71                return this.mValue;
72            }
73            set {
74                this.mValue = value;
75            }
76        }
77    #endregion       
78
79    #region Constructor
80    /// <summary>
81    /// Default constructor
82    /// </summary>
83    /// <param name="key"></param>
84    /// <param name="value"></param>
85    public DataType(string key, string value)
86    {
87      mName = key;
88      mValue.Add(value);
89    }
90    #region Constructor
91    /// <summary>
92    /// Constructor
93    /// </summary>
94    public DataType(){}
95    #endregion
96
97    #endregion
98
99    }
100}
Note: See TracBrowser for help on using the repository browser.