Mercurial > hg > ccmiandroid
comparison src/uk/ac/qmul/eecs/ccmi/xmlparser/Head.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.Root; | |
23 | |
24 @Root(name="Head") | |
25 public class Head { | |
26 | |
27 @Attribute(name="Head") | |
28 private String head; | |
29 @Attribute(name="headLabel") | |
30 private String headLabel; | |
31 public String getHead() { | |
32 return head; | |
33 } | |
34 public void setHead(String head) { | |
35 this.head = head; | |
36 } | |
37 public String getHeadLabel() { | |
38 return headLabel; | |
39 } | |
40 public void setHeadLabel(String headLabel) { | |
41 this.headLabel = headLabel; | |
42 } | |
43 | |
44 @Override | |
45 public String toString(){ | |
46 return getHeadLabel(); | |
47 } | |
48 | |
49 } |