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.NormalizedStringAdapter;
13 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
14 import java.util.ArrayList;
15 import java.util.List;
16
17
18
19
20
21 @XmlAccessorType(XmlAccessType.FIELD)
22 @XmlType(name = "", propOrder = {
23 "inflectionOrNoteOrTextOrArgOrRel"
24 })
25 @XmlRootElement(name = "example")
26 public class Example {
27
28 @XmlAttribute(name = "name")
29 @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
30 protected String name;
31 @XmlAttribute(name = "type")
32 @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
33 protected String type;
34 @XmlAttribute(name = "src")
35 @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
36 protected String src;
37 @XmlElements({
38 @XmlElement(name = "inflection", type = Inflection.class),
39 @XmlElement(name = "note", type = Note.class),
40 @XmlElement(name = "text", type = Text.class),
41 @XmlElement(name = "arg", type = Arg.class),
42 @XmlElement(name = "rel", type = Rel.class)
43 })
44 protected List<Object> inflectionOrNoteOrTextOrArgOrRel;
45
46
47
48
49
50
51
52
53
54 public String getName() {
55 return name;
56 }
57
58
59
60
61
62
63
64
65
66 public void setName(String value) {
67 this.name = value;
68 }
69
70
71
72
73
74
75
76
77
78 public String getType() {
79 return type;
80 }
81
82
83
84
85
86
87
88
89
90 public void setType(String value) {
91 this.type = value;
92 }
93
94
95
96
97
98
99
100
101
102 public String getSrc() {
103 return src;
104 }
105
106
107
108
109
110
111
112
113
114 public void setSrc(String value) {
115 this.src = value;
116 }
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144 public List<Object> getInflectionOrNoteOrTextOrArgOrRel() {
145 if (inflectionOrNoteOrTextOrArgOrRel == null) {
146 inflectionOrNoteOrTextOrArgOrRel = new ArrayList<Object>();
147 }
148 return this.inflectionOrNoteOrTextOrArgOrRel;
149 }
150
151 }