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 "noteOrRoleset" }) @XmlRootElement(name = "predicate") public class Predicate {
21
22 @XmlAttribute(name = "lemma", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String lemma;
23 @XmlElements({ @XmlElement(name = "note", type = Note.class),
24 @XmlElement(name = "roleset", type = Roleset.class) }) protected List<Object> noteOrRoleset;
25
26
27
28
29
30
31
32 public String getLemma() {
33 return lemma;
34 }
35
36
37
38
39
40
41
42 public void setLemma(String value) {
43 this.lemma = value;
44 }
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67 public List<Object> getNoteOrRoleset() {
68 if (noteOrRoleset == null) {
69 noteOrRoleset = new ArrayList<Object>();
70 }
71 return this.noteOrRoleset;
72 }
73
74 }