7440d6b8d87a9992a142de1bf210a3e9763d958b
[jalview.git] / src / jalview / xml / binding / uniprot / GeneType.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.XmlElement;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /**
20  * Describes a gene.
21  *             Equivalent to the flat file GN-line.
22  * 
23  * <p>Java class for geneType complex type.
24  * 
25  * <p>The following schema fragment specifies the expected content contained within this class.
26  * 
27  * <pre>
28  * &lt;complexType name="geneType">
29  *   &lt;complexContent>
30  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31  *       &lt;sequence>
32  *         &lt;element name="name" type="{http://uniprot.org/uniprot}geneNameType" maxOccurs="unbounded"/>
33  *       &lt;/sequence>
34  *     &lt;/restriction>
35  *   &lt;/complexContent>
36  * &lt;/complexType>
37  * </pre>
38  * 
39  * 
40  */
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "geneType", propOrder = {
43     "name"
44 })
45 public class GeneType {
46
47     @XmlElement(required = true)
48     protected List<GeneNameType> name;
49
50     /**
51      * Gets the value of the name property.
52      * 
53      * <p>
54      * This accessor method returns a reference to the live list,
55      * not a snapshot. Therefore any modification you make to the
56      * returned list will be present inside the JAXB object.
57      * This is why there is not a <CODE>set</CODE> method for the name property.
58      * 
59      * <p>
60      * For example, to add a new item, do as follows:
61      * <pre>
62      *    getName().add(newItem);
63      * </pre>
64      * 
65      * 
66      * <p>
67      * Objects of the following type(s) are allowed in the list
68      * {@link GeneNameType }
69      * 
70      * 
71      */
72     public List<GeneNameType> getName() {
73         if (name == null) {
74             name = new ArrayList<GeneNameType>();
75         }
76         return this.name;
77     }
78
79 }