1
2
3
4
5
6
7
8 package eu.fbk.dkm.pikes.resources.util.propbank;
9
10 import javax.xml.bind.annotation.*;
11 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
12 import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
13 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
14 import java.util.ArrayList;
15 import java.util.List;
16
17
18
19
20 @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {
21 "noteOrRolesOrExample" }) @XmlRootElement(name = "roleset") public class Roleset {
22
23 @XmlAttribute(name = "id", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID protected String id;
24 @XmlAttribute(name = "name") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String name;
25 @XmlAttribute(name = "vncls") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String vncls;
26 @XmlAttribute(name = "framnet") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String framnet;
27 @XmlAttribute(name = "source") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String source;
28 @XmlElements({ @XmlElement(name = "note", type = Note.class),
29 @XmlElement(name = "roles", type = Roles.class),
30 @XmlElement(name = "example", type = Example.class) }) protected List<Object> noteOrRolesOrExample;
31
32
33
34
35
36
37
38 public String getId() {
39 return id;
40 }
41
42
43
44
45
46
47
48 public void setId(String value) {
49 this.id = value;
50 }
51
52
53
54
55
56
57
58 public String getName() {
59 return name;
60 }
61
62
63
64
65
66
67
68 public void setName(String value) {
69 this.name = value;
70 }
71
72
73
74
75
76
77
78 public String getVncls() {
79 return vncls;
80 }
81
82
83
84
85
86
87
88 public void setVncls(String value) {
89 this.vncls = value;
90 }
91
92
93
94
95
96
97
98 public String getFramnet() {
99 return framnet;
100 }
101
102
103
104
105
106
107
108 public void setFramnet(String value) {
109 this.framnet = value;
110 }
111
112
113
114
115
116
117
118 public String getSource() {
119 return source;
120 }
121
122
123
124
125
126
127
128 public void setSource(String value) {
129 this.source = value;
130 }
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154 public List<Object> getNoteOrRolesOrExample() {
155 if (noteOrRolesOrExample == null) {
156 noteOrRolesOrExample = new ArrayList<Object>();
157 }
158 return this.noteOrRolesOrExample;
159 }
160
161 }