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.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 "inflectionOrNoteOrTextOrArgOrRel" }) @XmlRootElement(name = "example") public class Example {
21
22 @XmlAttribute(name = "name") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String name;
23 @XmlAttribute(name = "type") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String type;
24 @XmlAttribute(name = "src") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String src;
25 @XmlElements({ @XmlElement(name = "inflection", type = Inflection.class),
26 @XmlElement(name = "note", type = Note.class),
27 @XmlElement(name = "text", type = Text.class),
28 @XmlElement(name = "arg", type = Arg.class),
29 @XmlElement(name = "rel", type = Rel.class) }) protected List<Object> inflectionOrNoteOrTextOrArgOrRel;
30
31
32
33
34
35
36
37 public String getName() {
38 return name;
39 }
40
41
42
43
44
45
46
47 public void setName(String value) {
48 this.name = value;
49 }
50
51
52
53
54
55
56
57 public String getType() {
58 return type;
59 }
60
61
62
63
64
65
66
67 public void setType(String value) {
68 this.type = value;
69 }
70
71
72
73
74
75
76
77 public String getSrc() {
78 return src;
79 }
80
81
82
83
84
85
86
87 public void setSrc(String value) {
88 this.src = value;
89 }
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115 public List<Object> getInflectionOrNoteOrTextOrArgOrRel() {
116 if (inflectionOrNoteOrTextOrArgOrRel == null) {
117 inflectionOrNoteOrTextOrArgOrRel = new ArrayList<Object>();
118 }
119 return this.inflectionOrNoteOrTextOrArgOrRel;
120 }
121
122 }