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