1
2
3
4
5
6
7
8
9 package eu.fbk.dkm.pikes.resources.util.onsenses;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlRootElement;
18 import javax.xml.bind.annotation.XmlType;
19 import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
20 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
21
22
23
24
25
26 @XmlAccessorType(XmlAccessType.FIELD)
27 @XmlType(name = "", propOrder = {
28 "commentary",
29 "sense",
30 "wordmeta"
31 })
32 @XmlRootElement(name = "inventory")
33 public class Inventory {
34
35 @XmlAttribute(name = "lemma", required = true)
36 @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
37 protected String lemma;
38 protected String commentary;
39 @XmlElement(required = true)
40 protected List<Sense> sense;
41 @XmlElement(name = "WORD_META", required = true)
42 protected WORDMETA wordmeta;
43
44
45
46
47
48
49
50
51
52 public String getLemma() {
53 return lemma;
54 }
55
56
57
58
59
60
61
62
63
64 public void setLemma(String value) {
65 this.lemma = value;
66 }
67
68
69
70
71
72
73
74
75
76 public String getCommentary() {
77 return commentary;
78 }
79
80
81
82
83
84
85
86
87
88 public void setCommentary(String value) {
89 this.commentary = value;
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 public List<Sense> getSense() {
115 if (sense == null) {
116 sense = new ArrayList<Sense>();
117 }
118 return this.sense;
119 }
120
121
122
123
124
125
126
127
128
129 public WORDMETA getWORDMETA() {
130 return wordmeta;
131 }
132
133
134
135
136
137
138
139
140
141 public void setWORDMETA(WORDMETA value) {
142 this.wordmeta = value;
143 }
144
145 }