de53629bde9f517fa4fb11c14c0eecdacb821836
[jalview.git] / src / jalview / xml / binding / uniprot / OrganismType.java
1 //
2 // This file was generated by the Eclipse Implementation of JAXB, v2.3.3 
3 // See https://eclipse-ee4j.github.io/jaxb-ri 
4 // Any modifications to this file will be lost upon recompilation of the source schema. 
5 // Generated on: 2022.02.07 at 04:44:21 PM GMT 
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 the source organism.
22  * 
23  * <p>Java class for organismType complex type.
24  * 
25  * <p>The following schema fragment specifies the expected content contained within this class.
26  * 
27  * <pre>
28  * <complexType name="organismType">
29  *   <complexContent>
30  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31  *       <sequence>
32  *         <element name="name" type="{http://uniprot.org/uniprot}organismNameType" maxOccurs="unbounded"/>
33  *         <element name="dbReference" type="{http://uniprot.org/uniprot}dbReferenceType" maxOccurs="unbounded"/>
34  *         <element name="lineage" minOccurs="0">
35  *           <complexType>
36  *             <complexContent>
37  *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
38  *                 <sequence>
39  *                   <element name="taxon" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
40  *                 </sequence>
41  *               </restriction>
42  *             </complexContent>
43  *           </complexType>
44  *         </element>
45  *       </sequence>
46  *       <attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
47  *     </restriction>
48  *   </complexContent>
49  * </complexType>
50  * </pre>
51  * 
52  * 
53  */
54 @XmlAccessorType(XmlAccessType.FIELD)
55 @XmlType(name = "organismType", propOrder = {
56     "name",
57     "dbReference",
58     "lineage"
59 })
60 public class OrganismType {
61
62     @XmlElement(required = true)
63     protected List<OrganismNameType> name;
64     @XmlElement(required = true)
65     protected List<DbReferenceType> dbReference;
66     protected OrganismType.Lineage lineage;
67     @XmlAttribute(name = "evidence")
68     protected List<Integer> evidence;
69
70     /**
71      * Gets the value of the name property.
72      * 
73      * &lt;p&gt;
74      * This accessor method returns a reference to the live list,
75      * not a snapshot. Therefore any modification you make to the
76      * returned list will be present inside the JAXB object.
77      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the name property.
78      * 
79      * &lt;p&gt;
80      * For example, to add a new item, do as follows:
81      * &lt;pre&gt;
82      *    getName().add(newItem);
83      * &lt;/pre&gt;
84      * 
85      * 
86      * &lt;p&gt;
87      * Objects of the following type(s) are allowed in the list
88      * {@link OrganismNameType }
89      * 
90      * 
91      */
92     public List<OrganismNameType> getName() {
93         if (name == null) {
94             name = new ArrayList<OrganismNameType>();
95         }
96         return this.name;
97     }
98
99     /**
100      * Gets the value of the dbReference property.
101      * 
102      * &lt;p&gt;
103      * This accessor method returns a reference to the live list,
104      * not a snapshot. Therefore any modification you make to the
105      * returned list will be present inside the JAXB object.
106      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the dbReference property.
107      * 
108      * &lt;p&gt;
109      * For example, to add a new item, do as follows:
110      * &lt;pre&gt;
111      *    getDbReference().add(newItem);
112      * &lt;/pre&gt;
113      * 
114      * 
115      * &lt;p&gt;
116      * Objects of the following type(s) are allowed in the list
117      * {@link DbReferenceType }
118      * 
119      * 
120      */
121     public List<DbReferenceType> getDbReference() {
122         if (dbReference == null) {
123             dbReference = new ArrayList<DbReferenceType>();
124         }
125         return this.dbReference;
126     }
127
128     /**
129      * Gets the value of the lineage property.
130      * 
131      * @return
132      *     possible object is
133      *     {@link OrganismType.Lineage }
134      *     
135      */
136     public OrganismType.Lineage getLineage() {
137         return lineage;
138     }
139
140     /**
141      * Sets the value of the lineage property.
142      * 
143      * @param value
144      *     allowed object is
145      *     {@link OrganismType.Lineage }
146      *     
147      */
148     public void setLineage(OrganismType.Lineage value) {
149         this.lineage = value;
150     }
151
152     /**
153      * Gets the value of the evidence property.
154      * 
155      * &lt;p&gt;
156      * This accessor method returns a reference to the live list,
157      * not a snapshot. Therefore any modification you make to the
158      * returned list will be present inside the JAXB object.
159      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the evidence property.
160      * 
161      * &lt;p&gt;
162      * For example, to add a new item, do as follows:
163      * &lt;pre&gt;
164      *    getEvidence().add(newItem);
165      * &lt;/pre&gt;
166      * 
167      * 
168      * &lt;p&gt;
169      * Objects of the following type(s) are allowed in the list
170      * {@link Integer }
171      * 
172      * 
173      */
174     public List<Integer> getEvidence() {
175         if (evidence == null) {
176             evidence = new ArrayList<Integer>();
177         }
178         return this.evidence;
179     }
180
181
182     /**
183      * &lt;p&gt;Java class for anonymous complex type.
184      * 
185      * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
186      * 
187      * &lt;pre&gt;
188      * &amp;lt;complexType&amp;gt;
189      *   &amp;lt;complexContent&amp;gt;
190      *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
191      *       &amp;lt;sequence&amp;gt;
192      *         &amp;lt;element name="taxon" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&amp;gt;
193      *       &amp;lt;/sequence&amp;gt;
194      *     &amp;lt;/restriction&amp;gt;
195      *   &amp;lt;/complexContent&amp;gt;
196      * &amp;lt;/complexType&amp;gt;
197      * &lt;/pre&gt;
198      * 
199      * 
200      */
201     @XmlAccessorType(XmlAccessType.FIELD)
202     @XmlType(name = "", propOrder = {
203         "taxon"
204     })
205     public static class Lineage {
206
207         @XmlElement(required = true)
208         protected List<String> taxon;
209
210         /**
211          * Gets the value of the taxon property.
212          * 
213          * &lt;p&gt;
214          * This accessor method returns a reference to the live list,
215          * not a snapshot. Therefore any modification you make to the
216          * returned list will be present inside the JAXB object.
217          * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the taxon property.
218          * 
219          * &lt;p&gt;
220          * For example, to add a new item, do as follows:
221          * &lt;pre&gt;
222          *    getTaxon().add(newItem);
223          * &lt;/pre&gt;
224          * 
225          * 
226          * &lt;p&gt;
227          * Objects of the following type(s) are allowed in the list
228          * {@link String }
229          * 
230          * 
231          */
232         public List<String> getTaxon() {
233             if (taxon == null) {
234                 taxon = new ArrayList<String>();
235             }
236             return this.taxon;
237         }
238
239     }
240
241 }