JAL-3785 JAL- Merge branch 'bug/JAL-3785autoOverviewTitle' into 2_11_2_develop
[jalview.git] / src / jalview / xml / binding / uniprot / GeneNameType.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.XmlType;
17 import javax.xml.bind.annotation.XmlValue;
18
19
20 /**
21  * Describes different types of gene designations.
22  *             Equivalent to the flat file GN-line.
23  * 
24  * <p>Java class for geneNameType complex type.
25  * 
26  * <p>The following schema fragment specifies the expected content contained within this class.
27  * 
28  * <pre>
29  * <complexType name="geneNameType">
30  *   <simpleContent>
31  *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
32  *       <attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
33  *       <attribute name="type" use="required">
34  *         <simpleType>
35  *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
36  *             <enumeration value="primary"/>
37  *             <enumeration value="synonym"/>
38  *             <enumeration value="ordered locus"/>
39  *             <enumeration value="ORF"/>
40  *           </restriction>
41  *         </simpleType>
42  *       </attribute>
43  *     </extension>
44  *   </simpleContent>
45  * </complexType>
46  * </pre>
47  * 
48  * 
49  */
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "geneNameType", propOrder = {
52     "value"
53 })
54 public class GeneNameType {
55
56     @XmlValue
57     protected String value;
58     @XmlAttribute(name = "evidence")
59     protected List<Integer> evidence;
60     @XmlAttribute(name = "type", required = true)
61     protected String type;
62
63     /**
64      * Gets the value of the value property.
65      * 
66      * @return
67      *     possible object is
68      *     {@link String }
69      *     
70      */
71     public String getValue() {
72         return value;
73     }
74
75     /**
76      * Sets the value of the value property.
77      * 
78      * @param value
79      *     allowed object is
80      *     {@link String }
81      *     
82      */
83     public void setValue(String value) {
84         this.value = value;
85     }
86
87     /**
88      * Gets the value of the evidence property.
89      * 
90      * &lt;p&gt;
91      * This accessor method returns a reference to the live list,
92      * not a snapshot. Therefore any modification you make to the
93      * returned list will be present inside the JAXB object.
94      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the evidence property.
95      * 
96      * &lt;p&gt;
97      * For example, to add a new item, do as follows:
98      * &lt;pre&gt;
99      *    getEvidence().add(newItem);
100      * &lt;/pre&gt;
101      * 
102      * 
103      * &lt;p&gt;
104      * Objects of the following type(s) are allowed in the list
105      * {@link Integer }
106      * 
107      * 
108      */
109     public List<Integer> getEvidence() {
110         if (evidence == null) {
111             evidence = new ArrayList<Integer>();
112         }
113         return this.evidence;
114     }
115
116     /**
117      * Gets the value of the type property.
118      * 
119      * @return
120      *     possible object is
121      *     {@link String }
122      *     
123      */
124     public String getType() {
125         return type;
126     }
127
128     /**
129      * Sets the value of the type property.
130      * 
131      * @param value
132      *     allowed object is
133      *     {@link String }
134      *     
135      */
136     public void setType(String value) {
137         this.type = value;
138     }
139
140 }