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.NormalizedStringAdapter;
12 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13 import java.util.ArrayList;
14 import java.util.List;
15
16
17
18
19 @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {
20 "vnrole" }) @XmlRootElement(name = "role") public class Role {
21
22 @XmlAttribute(name = "n", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String n;
23 @XmlAttribute(name = "f") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String f;
24 @XmlAttribute(name = "descr", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String descr;
25 @XmlAttribute(name = "source") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String source;
26 protected List<Vnrole> vnrole;
27
28
29
30
31
32
33
34 public String getN() {
35 return n;
36 }
37
38
39
40
41
42
43
44 public void setN(String value) {
45 this.n = value;
46 }
47
48
49
50
51
52
53
54 public String getF() {
55 return f;
56 }
57
58
59
60
61
62
63
64 public void setF(String value) {
65 this.f = value;
66 }
67
68
69
70
71
72
73
74 public String getDescr() {
75 return descr;
76 }
77
78
79
80
81
82
83
84 public void setDescr(String value) {
85 this.descr = value;
86 }
87
88
89
90
91
92
93
94 public String getSource() {
95 return source;
96 }
97
98
99
100
101
102
103
104 public void setSource(String value) {
105 this.source = value;
106 }
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128 public List<Vnrole> getVnrole() {
129 if (vnrole == null) {
130 vnrole = new ArrayList<Vnrole>();
131 }
132 return this.vnrole;
133 }
134
135 }