Mercurial > hg > ccmiandroid
comparison src/uk/ac/qmul/eecs/ccmi/xmlparser/Diagram.java @ 0:e0ee6ac3a45f
first import
author | Fiore Martin <fiore@eecs.qmul.ac.uk> |
---|---|
date | Thu, 13 Dec 2012 20:00:21 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e0ee6ac3a45f |
---|---|
1 /* | |
2 CCmI Diagram Editor for Android | |
3 | |
4 Copyright (C) 2012 Queen Mary University of London (http://ccmi.eecs.qmul.ac.uk/) | |
5 | |
6 This program is free software: you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation, either version 3 of the License, or | |
9 (at your option) any later version. | |
10 | |
11 This program is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 */ | |
19 package uk.ac.qmul.eecs.ccmi.xmlparser; | |
20 | |
21 import org.simpleframework.xml.Attribute; | |
22 import org.simpleframework.xml.Element; | |
23 import org.simpleframework.xml.Root; | |
24 | |
25 | |
26 @Root(name="Diagram") | |
27 public class Diagram implements HierarchyItem { | |
28 | |
29 @Attribute(name="Name") | |
30 private String name; | |
31 | |
32 @Attribute(name="PrototypeDelegate") | |
33 private String prototypeDelegate; | |
34 | |
35 @Element(name="Prototypes") | |
36 private Prototypes prototype; | |
37 | |
38 @Element(name="Components") | |
39 private Components components; | |
40 | |
41 public String getName() { | |
42 return name; | |
43 } | |
44 | |
45 public void setName(String name) { | |
46 this.name = name; | |
47 } | |
48 | |
49 public String getPrototypeDelegate() { | |
50 return prototypeDelegate; | |
51 } | |
52 | |
53 public void setPrototypeDelegate(String prototypeDelegate) { | |
54 this.prototypeDelegate = prototypeDelegate; | |
55 } | |
56 | |
57 public Prototypes getPrototypes() { | |
58 return prototype; | |
59 } | |
60 | |
61 public void setPrototypes(Prototypes prototype) { | |
62 this.prototype = prototype; | |
63 } | |
64 | |
65 public Components getComponents() { | |
66 return components; | |
67 } | |
68 | |
69 public void setComponents(Components components) { | |
70 this.components = components; | |
71 } | |
72 | |
73 public Diagram(){ | |
74 super(); | |
75 } | |
76 | |
77 public Diagram(String name){ | |
78 this.name = name; | |
79 prototype = new Prototypes(); | |
80 components = new Components(); | |
81 } | |
82 | |
83 @Override | |
84 public String toString() { | |
85 return name; | |
86 } | |
87 | |
88 } |