1
2
3
4
5
6
7
8 package eu.fbk.dkm.premon.premonitor.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 = "aliases", type = Aliases.class),
31 @XmlElement(name = "example", type = Example.class) }) protected List<Object> noteOrRolesOrExample;
32
33
34
35
36
37
38
39 public String getId() {
40 return id;
41 }
42
43
44
45
46
47
48
49 public void setId(String value) {
50 this.id = value;
51 }
52
53
54
55
56
57
58
59 public String getName() {
60 return name;
61 }
62
63
64
65
66
67
68
69 public void setName(String value) {
70 this.name = value;
71 }
72
73
74
75
76
77
78
79 public String getVncls() {
80 return vncls;
81 }
82
83
84
85
86
87
88
89 public void setVncls(String value) {
90 this.vncls = value;
91 }
92
93
94
95
96
97
98
99 public String getFramnet() {
100 return framnet;
101 }
102
103
104
105
106
107
108
109 public void setFramnet(String value) {
110 this.framnet = value;
111 }
112
113
114
115
116
117
118
119 public String getSource() {
120 return source;
121 }
122
123
124
125
126
127
128
129 public void setSource(String value) {
130 this.source = value;
131 }
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155 public List<Object> getNoteOrRolesOrExampleOrAliases() {
156 if (noteOrRolesOrExample == null) {
157 noteOrRolesOrExample = new ArrayList<Object>();
158 }
159 return this.noteOrRolesOrExample;
160 }
161
162 }