800f518f3db9d048a6f8b244d5184e9a3df304fa
[jalview.git] / src / jalview / xml / binding / uniprot / ReactionType.java
1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4 // Any modifications to this file will be lost upon recompilation of the source schema. 
5 // Generated on: 2019.04.05 at 08:01:44 AM BST 
6 //
7
8
9 package jalview.xml.binding.uniprot;
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.XmlType;
18
19
20 /**
21  * Describes a chemical reaction.
22  * 
23  * <p>Java class for reactionType complex type.
24  * 
25  * <p>The following schema fragment specifies the expected content contained within this class.
26  * 
27  * <pre>
28  * &lt;complexType name="reactionType">
29  *   &lt;complexContent>
30  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31  *       &lt;sequence>
32  *         &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
33  *         &lt;element name="dbReference" type="{http://uniprot.org/uniprot}dbReferenceType" maxOccurs="unbounded"/>
34  *       &lt;/sequence>
35  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
36  *     &lt;/restriction>
37  *   &lt;/complexContent>
38  * &lt;/complexType>
39  * </pre>
40  * 
41  * 
42  */
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "reactionType", propOrder = {
45     "text",
46     "dbReference"
47 })
48 public class ReactionType {
49
50     @XmlElement(required = true)
51     protected String text;
52     @XmlElement(required = true)
53     protected List<DbReferenceType> dbReference;
54     @XmlAttribute(name = "evidence")
55     protected List<Integer> evidence;
56
57     /**
58      * Gets the value of the text property.
59      * 
60      * @return
61      *     possible object is
62      *     {@link String }
63      *     
64      */
65     public String getText() {
66         return text;
67     }
68
69     /**
70      * Sets the value of the text property.
71      * 
72      * @param value
73      *     allowed object is
74      *     {@link String }
75      *     
76      */
77     public void setText(String value) {
78         this.text = value;
79     }
80
81     /**
82      * Gets the value of the dbReference property.
83      * 
84      * <p>
85      * This accessor method returns a reference to the live list,
86      * not a snapshot. Therefore any modification you make to the
87      * returned list will be present inside the JAXB object.
88      * This is why there is not a <CODE>set</CODE> method for the dbReference property.
89      * 
90      * <p>
91      * For example, to add a new item, do as follows:
92      * <pre>
93      *    getDbReference().add(newItem);
94      * </pre>
95      * 
96      * 
97      * <p>
98      * Objects of the following type(s) are allowed in the list
99      * {@link DbReferenceType }
100      * 
101      * 
102      */
103     public List<DbReferenceType> getDbReference() {
104         if (dbReference == null) {
105             dbReference = new ArrayList<DbReferenceType>();
106         }
107         return this.dbReference;
108     }
109
110     /**
111      * Gets the value of the evidence property.
112      * 
113      * <p>
114      * This accessor method returns a reference to the live list,
115      * not a snapshot. Therefore any modification you make to the
116      * returned list will be present inside the JAXB object.
117      * This is why there is not a <CODE>set</CODE> method for the evidence property.
118      * 
119      * <p>
120      * For example, to add a new item, do as follows:
121      * <pre>
122      *    getEvidence().add(newItem);
123      * </pre>
124      * 
125      * 
126      * <p>
127      * Objects of the following type(s) are allowed in the list
128      * {@link Integer }
129      * 
130      * 
131      */
132     public List<Integer> getEvidence() {
133         if (evidence == null) {
134             evidence = new ArrayList<Integer>();
135         }
136         return this.evidence;
137     }
138
139 }