JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / xml / binding / uniprot / GeneLocationType.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.XmlAttribute;
15 import javax.xml.bind.annotation.XmlType;
16
17 /**
18  * Describes non-nuclear gene locations (organelles and plasmids). Equivalent to
19  * the flat file OG-line.
20  * 
21  * <p>
22  * Java class for geneLocationType complex type.
23  * 
24  * <p>
25  * The following schema fragment specifies the expected content contained within
26  * this class.
27  * 
28  * <pre>
29  * &lt;complexType name="geneLocationType">
30  *   &lt;complexContent>
31  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32  *       &lt;sequence>
33  *         &lt;element name="name" type="{http://uniprot.org/uniprot}statusType" maxOccurs="unbounded" minOccurs="0"/>
34  *       &lt;/sequence>
35  *       &lt;attribute name="type" use="required">
36  *         &lt;simpleType>
37  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
38  *             &lt;enumeration value="apicoplast"/>
39  *             &lt;enumeration value="chloroplast"/>
40  *             &lt;enumeration value="organellar chromatophore"/>
41  *             &lt;enumeration value="cyanelle"/>
42  *             &lt;enumeration value="hydrogenosome"/>
43  *             &lt;enumeration value="mitochondrion"/>
44  *             &lt;enumeration value="non-photosynthetic plastid"/>
45  *             &lt;enumeration value="nucleomorph"/>
46  *             &lt;enumeration value="plasmid"/>
47  *             &lt;enumeration value="plastid"/>
48  *           &lt;/restriction>
49  *         &lt;/simpleType>
50  *       &lt;/attribute>
51  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
52  *     &lt;/restriction>
53  *   &lt;/complexContent>
54  * &lt;/complexType>
55  * </pre>
56  * 
57  * 
58  */
59 @XmlAccessorType(XmlAccessType.FIELD)
60 @XmlType(name = "geneLocationType", propOrder = { "name" })
61 public class GeneLocationType
62 {
63
64   protected List<StatusType> name;
65
66   @XmlAttribute(name = "type", required = true)
67   protected String type;
68
69   @XmlAttribute(name = "evidence")
70   protected List<Integer> evidence;
71
72   /**
73    * Gets the value of the name property.
74    * 
75    * <p>
76    * This accessor method returns a reference to the live list, not a snapshot.
77    * Therefore any modification you make to the returned list will be present
78    * inside the JAXB object. This is why there is not a <CODE>set</CODE> method
79    * for the name property.
80    * 
81    * <p>
82    * For example, to add a new item, do as follows:
83    * 
84    * <pre>
85    * getName().add(newItem);
86    * </pre>
87    * 
88    * 
89    * <p>
90    * Objects of the following type(s) are allowed in the list {@link StatusType
91    * }
92    * 
93    * 
94    */
95   public List<StatusType> getName()
96   {
97     if (name == null)
98     {
99       name = new ArrayList<StatusType>();
100     }
101     return this.name;
102   }
103
104   /**
105    * Gets the value of the type property.
106    * 
107    * @return possible object is {@link String }
108    * 
109    */
110   public String getType()
111   {
112     return type;
113   }
114
115   /**
116    * Sets the value of the type property.
117    * 
118    * @param value
119    *          allowed object is {@link String }
120    * 
121    */
122   public void setType(String value)
123   {
124     this.type = value;
125   }
126
127   /**
128    * Gets the value of the evidence property.
129    * 
130    * <p>
131    * This accessor method returns a reference to the live list, not a snapshot.
132    * Therefore any modification you make to the returned list will be present
133    * inside the JAXB object. This is why there is not a <CODE>set</CODE> method
134    * for the evidence property.
135    * 
136    * <p>
137    * For example, to add a new item, do as follows:
138    * 
139    * <pre>
140    * getEvidence().add(newItem);
141    * </pre>
142    * 
143    * 
144    * <p>
145    * Objects of the following type(s) are allowed in the list {@link Integer }
146    * 
147    * 
148    */
149   public List<Integer> getEvidence()
150   {
151     if (evidence == null)
152     {
153       evidence = new ArrayList<Integer>();
154     }
155     return this.evidence;
156   }
157
158 }