JAL-3438 spotless for 2.11.2.0
[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 package jalview.xml.binding.uniprot;
9
10 import java.util.ArrayList;
11 import java.util.List;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlType;
16
17 /**
18  * Describes a gene. Equivalent to the flat file GN-line.
19  * 
20  * <p>
21  * Java class for geneType complex type.
22  * 
23  * <p>
24  * The following schema fragment specifies the expected content contained within
25  * 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 = { "name" })
43 public class GeneType
44 {
45
46   @XmlElement(required = true)
47   protected List<GeneNameType> name;
48
49   /**
50    * Gets the value of the name property.
51    * 
52    * <p>
53    * This accessor method returns a reference to the live list, not a snapshot.
54    * Therefore any modification you make to the returned list will be present
55    * inside the JAXB object. This is why there is not a <CODE>set</CODE> method
56    * for the name property.
57    * 
58    * <p>
59    * For example, to add a new item, do as follows:
60    * 
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   {
74     if (name == null)
75     {
76       name = new ArrayList<GeneNameType>();
77     }
78     return this.name;
79   }
80
81 }