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