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