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