bd93a7cb7b9d9254f9ca79acfb2a3e0a155dccc3
[jalview.git] / src / jalview / xml / binding / uniprot / GeneNameType.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 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  * &lt;complexType name="geneNameType">
30  *   &lt;simpleContent>
31  *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
32  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
33  *       &lt;attribute name="type" use="required">
34  *         &lt;simpleType>
35  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
36  *             &lt;enumeration value="primary"/>
37  *             &lt;enumeration value="synonym"/>
38  *             &lt;enumeration value="ordered locus"/>
39  *             &lt;enumeration value="ORF"/>
40  *           &lt;/restriction>
41  *         &lt;/simpleType>
42  *       &lt;/attribute>
43  *     &lt;/extension>
44  *   &lt;/simpleContent>
45  * &lt;/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      * <p>
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 <CODE>set</CODE> method for the evidence property.
95      * 
96      * <p>
97      * For example, to add a new item, do as follows:
98      * <pre>
99      *    getEvidence().add(newItem);
100      * </pre>
101      * 
102      * 
103      * <p>
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 }