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.GraphML {
|
---|
9 |
|
---|
10 | [XmlType(IncludeInSchema=true, TypeName="hyperedge.type")]
|
---|
11 | [XmlRoot(ElementName="hyperedge", IsNullable=false, DataType="")]
|
---|
12 | public class HyperEdgeType {
|
---|
13 |
|
---|
14 | private DataCollection _items = new DataCollection();
|
---|
15 | private string _desc;
|
---|
16 | private string id;
|
---|
17 | private GraphType _graph;
|
---|
18 |
|
---|
19 | [XmlElement(ElementName="desc")]
|
---|
20 | public virtual string Desc {
|
---|
21 | get {
|
---|
22 | return this._desc;
|
---|
23 | }
|
---|
24 | set {
|
---|
25 | this._desc = value;
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 | [XmlElement(ElementName="data", Type=typeof(DataType))]
|
---|
32 | [XmlElement(ElementName="endpoint", Type=typeof(EndPointType))]
|
---|
33 | public virtual DataCollection Items {
|
---|
34 | get {
|
---|
35 | return this._items;
|
---|
36 | }
|
---|
37 | set {
|
---|
38 | this._items = value;
|
---|
39 | }
|
---|
40 | }
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 | [XmlElement(ElementName="graph")]
|
---|
45 | public virtual GraphType Graph {
|
---|
46 | get {
|
---|
47 | return this._graph;
|
---|
48 | }
|
---|
49 | set {
|
---|
50 | this._graph = value;
|
---|
51 | }
|
---|
52 | }
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 | [XmlAttribute(AttributeName="id")]
|
---|
57 | public virtual string ID {
|
---|
58 | get {
|
---|
59 | return this.id;
|
---|
60 | }
|
---|
61 | set {
|
---|
62 | this.id = value;
|
---|
63 | }
|
---|
64 | }
|
---|
65 |
|
---|
66 |
|
---|
67 | }
|
---|
68 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.