1
2
3
4
5
6
7
8
9 package eu.fbk.dkm.pikes.resources.ontonotes.senses;
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 "commentary",
24 "sense",
25 "wordmeta"
26 })
27 @XmlRootElement(name = "inventory")
28 public class Inventory {
29
30 @XmlAttribute(name = "lemma", required = true)
31 @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
32 protected String lemma;
33 protected String commentary;
34 @XmlElement(required = true)
35 protected List<Sense> sense;
36 @XmlElement(name = "WORD_META", required = true)
37 protected WORDMETA wordmeta;
38
39
40
41
42
43
44
45
46
47 public String getLemma() {
48 return lemma;
49 }
50
51
52
53
54
55
56
57
58
59 public void setLemma(String value) {
60 this.lemma = value;
61 }
62
63
64
65
66
67
68
69
70
71 public String getCommentary() {
72 return commentary;
73 }
74
75
76
77
78
79
80
81
82
83 public void setCommentary(String value) {
84 this.commentary = value;
85 }
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109 public List<Sense> getSense() {
110 if (sense == null) {
111 sense = new ArrayList<Sense>();
112 }
113 return this.sense;
114 }
115
116
117
118
119
120
121
122
123
124 public WORDMETA getWORDMETA() {
125 return wordmeta;
126 }
127
128
129
130
131
132
133
134
135
136 public void setWORDMETA(WORDMETA value) {
137 this.wordmeta = value;
138 }
139
140 }