1   //
2   // Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.8-b130911.1802 
3   // Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine. 
5   // Generato il: 2015.05.07 alle 12:32:49 PM CEST 
6   //
7   
8   package eu.fbk.dkm.pikes.resources.util.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       * Recupera il valore della proprietà lemma.
28       *
29       * @return possible object is
30       * {@link String }
31       */
32      public String getLemma() {
33          return lemma;
34      }
35  
36      /**
37       * Imposta il valore della proprietà lemma.
38       *
39       * @param value allowed object is
40       *              {@link String }
41       */
42      public void setLemma(String value) {
43          this.lemma = value;
44      }
45  
46      /**
47       * Gets the value of the noteOrRoleset property.
48       * <p>
49       * <p>
50       * This accessor method returns a reference to the live list,
51       * not a snapshot. Therefore any modification you make to the
52       * returned list will be present inside the JAXB object.
53       * This is why there is not a <CODE>set</CODE> method for the noteOrRoleset property.
54       * <p>
55       * <p>
56       * For example, to add a new item, do as follows:
57       * <pre>
58       *    getNoteOrRoleset().add(newItem);
59       * </pre>
60       * <p>
61       * <p>
62       * <p>
63       * Objects of the following type(s) are allowed in the list
64       * {@link Note }
65       * {@link Roleset }
66       */
67      public List<Object> getNoteOrRoleset() {
68          if (noteOrRoleset == null) {
69              noteOrRoleset = new ArrayList<Object>();
70          }
71          return this.noteOrRoleset;
72      }
73  
74  }