75fb044ad2b8e490c0971d51513c8b25844e1c0c
[jalview.git] / src / jalview / xml / binding / uniprot / ReferenceType.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.XmlElement;
17 import javax.xml.bind.annotation.XmlType;
18
19
20 /**
21  * Describes a citation and a summary of its content.
22  *             Equivalent to the flat file RN-, RP-, RC-, RX-, RG-, RA-, RT- and RL-lines.
23  * 
24  * <p>Java class for referenceType complex type.
25  * 
26  * <p>The following schema fragment specifies the expected content contained within this class.
27  * 
28  * <pre>
29  * &lt;complexType name="referenceType">
30  *   &lt;complexContent>
31  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32  *       &lt;sequence>
33  *         &lt;element name="citation" type="{http://uniprot.org/uniprot}citationType"/>
34  *         &lt;group ref="{http://uniprot.org/uniprot}sptrCitationGroup"/>
35  *       &lt;/sequence>
36  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
37  *       &lt;attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
38  *     &lt;/restriction>
39  *   &lt;/complexContent>
40  * &lt;/complexType>
41  * </pre>
42  * 
43  * 
44  */
45 @XmlAccessorType(XmlAccessType.FIELD)
46 @XmlType(name = "referenceType", propOrder = {
47     "citation",
48     "scope",
49     "source"
50 })
51 public class ReferenceType {
52
53     @XmlElement(required = true)
54     protected CitationType citation;
55     @XmlElement(required = true)
56     protected List<String> scope;
57     protected SourceDataType source;
58     @XmlAttribute(name = "evidence")
59     protected List<Integer> evidence;
60     @XmlAttribute(name = "key", required = true)
61     protected String key;
62
63     /**
64      * Gets the value of the citation property.
65      * 
66      * @return
67      *     possible object is
68      *     {@link CitationType }
69      *     
70      */
71     public CitationType getCitation() {
72         return citation;
73     }
74
75     /**
76      * Sets the value of the citation property.
77      * 
78      * @param value
79      *     allowed object is
80      *     {@link CitationType }
81      *     
82      */
83     public void setCitation(CitationType value) {
84         this.citation = value;
85     }
86
87     /**
88      * Gets the value of the scope 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 scope property.
95      * 
96      * <p>
97      * For example, to add a new item, do as follows:
98      * <pre>
99      *    getScope().add(newItem);
100      * </pre>
101      * 
102      * 
103      * <p>
104      * Objects of the following type(s) are allowed in the list
105      * {@link String }
106      * 
107      * 
108      */
109     public List<String> getScope() {
110         if (scope == null) {
111             scope = new ArrayList<String>();
112         }
113         return this.scope;
114     }
115
116     /**
117      * Gets the value of the source property.
118      * 
119      * @return
120      *     possible object is
121      *     {@link SourceDataType }
122      *     
123      */
124     public SourceDataType getSource() {
125         return source;
126     }
127
128     /**
129      * Sets the value of the source property.
130      * 
131      * @param value
132      *     allowed object is
133      *     {@link SourceDataType }
134      *     
135      */
136     public void setSource(SourceDataType value) {
137         this.source = value;
138     }
139
140     /**
141      * Gets the value of the evidence property.
142      * 
143      * <p>
144      * This accessor method returns a reference to the live list,
145      * not a snapshot. Therefore any modification you make to the
146      * returned list will be present inside the JAXB object.
147      * This is why there is not a <CODE>set</CODE> method for the evidence property.
148      * 
149      * <p>
150      * For example, to add a new item, do as follows:
151      * <pre>
152      *    getEvidence().add(newItem);
153      * </pre>
154      * 
155      * 
156      * <p>
157      * Objects of the following type(s) are allowed in the list
158      * {@link Integer }
159      * 
160      * 
161      */
162     public List<Integer> getEvidence() {
163         if (evidence == null) {
164             evidence = new ArrayList<Integer>();
165         }
166         return this.evidence;
167     }
168
169     /**
170      * Gets the value of the key property.
171      * 
172      * @return
173      *     possible object is
174      *     {@link String }
175      *     
176      */
177     public String getKey() {
178         return key;
179     }
180
181     /**
182      * Sets the value of the key property.
183      * 
184      * @param value
185      *     allowed object is
186      *     {@link String }
187      *     
188      */
189     public void setKey(String value) {
190         this.key = value;
191     }
192
193 }