JAL-3438 spotless for 2.11.2.0
[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 package jalview.xml.binding.uniprot;
9
10 import java.util.ArrayList;
11 import java.util.List;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlAttribute;
15 import javax.xml.bind.annotation.XmlType;
16
17 /**
18  * Describes a database cross-reference. Equivalent to the flat file DR-line.
19  * 
20  * 
21  * <p>
22  * Java class for dbReferenceType complex type.
23  * 
24  * <p>
25  * The following schema fragment specifies the expected content contained within
26  * 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 = { "molecule", "property" })
48 public class DbReferenceType
49 {
50
51   protected MoleculeType molecule;
52
53   protected List<PropertyType> property;
54
55   @XmlAttribute(name = "type", required = true)
56   protected String type;
57
58   @XmlAttribute(name = "id", required = true)
59   protected String id;
60
61   @XmlAttribute(name = "evidence")
62   protected List<Integer> evidence;
63
64   /**
65    * Gets the value of the molecule property.
66    * 
67    * @return possible object is {@link MoleculeType }
68    * 
69    */
70   public MoleculeType getMolecule()
71   {
72     return molecule;
73   }
74
75   /**
76    * Sets the value of the molecule property.
77    * 
78    * @param value
79    *          allowed object is {@link MoleculeType }
80    * 
81    */
82   public void setMolecule(MoleculeType value)
83   {
84     this.molecule = value;
85   }
86
87   /**
88    * Gets the value of the property property.
89    * 
90    * <p>
91    * This accessor method returns a reference to the live list, not a snapshot.
92    * Therefore any modification you make to the returned list will be present
93    * inside the JAXB object. This is why there is not a <CODE>set</CODE> method
94    * for the property property.
95    * 
96    * <p>
97    * For example, to add a new item, do as follows:
98    * 
99    * <pre>
100    * getProperty().add(newItem);
101    * </pre>
102    * 
103    * 
104    * <p>
105    * Objects of the following type(s) are allowed in the list
106    * {@link PropertyType }
107    * 
108    * 
109    */
110   public List<PropertyType> getProperty()
111   {
112     if (property == null)
113     {
114       property = new ArrayList<PropertyType>();
115     }
116     return this.property;
117   }
118
119   /**
120    * Gets the value of the type property.
121    * 
122    * @return possible object is {@link String }
123    * 
124    */
125   public String getType()
126   {
127     return type;
128   }
129
130   /**
131    * Sets the value of the type property.
132    * 
133    * @param value
134    *          allowed object is {@link String }
135    * 
136    */
137   public void setType(String value)
138   {
139     this.type = value;
140   }
141
142   /**
143    * Gets the value of the id property.
144    * 
145    * @return possible object is {@link String }
146    * 
147    */
148   public String getId()
149   {
150     return id;
151   }
152
153   /**
154    * Sets the value of the id property.
155    * 
156    * @param value
157    *          allowed object is {@link String }
158    * 
159    */
160   public void setId(String value)
161   {
162     this.id = value;
163   }
164
165   /**
166    * Gets the value of the evidence property.
167    * 
168    * <p>
169    * This accessor method returns a reference to the live list, not a snapshot.
170    * Therefore any modification you make to the returned list will be present
171    * inside the JAXB object. This is why there is not a <CODE>set</CODE> method
172    * for the evidence property.
173    * 
174    * <p>
175    * For example, to add a new item, do as follows:
176    * 
177    * <pre>
178    * getEvidence().add(newItem);
179    * </pre>
180    * 
181    * 
182    * <p>
183    * Objects of the following type(s) are allowed in the list {@link Integer }
184    * 
185    * 
186    */
187   public List<Integer> getEvidence()
188   {
189     if (evidence == null)
190     {
191       evidence = new ArrayList<Integer>();
192     }
193     return this.evidence;
194   }
195
196 }