a0d1dfaa2dcbacb64a8d9aa00434548925904e6e
[jalview.git] / src / jalview / xml / binding / uniprot / CofactorType.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 cofactor.
22  * 
23  * <p>Java class for cofactorType complex type.
24  * 
25  * <p>The following schema fragment specifies the expected content contained within this class.
26  * 
27  * <pre>
28  * &lt;complexType name="cofactorType">
29  *   &lt;complexContent>
30  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31  *       &lt;sequence>
32  *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
33  *         &lt;element name="dbReference" type="{http://uniprot.org/uniprot}dbReferenceType"/>
34  *       &lt;/sequence>
35  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
36  *     &lt;/restriction>
37  *   &lt;/complexContent>
38  * &lt;/complexType>
39  * </pre>
40  * 
41  * 
42  */
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "cofactorType", propOrder = {
45     "name",
46     "dbReference"
47 })
48 public class CofactorType {
49
50     @XmlElement(required = true)
51     protected String name;
52     @XmlElement(required = true)
53     protected DbReferenceType dbReference;
54     @XmlAttribute(name = "evidence")
55     protected List<Integer> evidence;
56
57     /**
58      * Gets the value of the name property.
59      * 
60      * @return
61      *     possible object is
62      *     {@link String }
63      *     
64      */
65     public String getName() {
66         return name;
67     }
68
69     /**
70      * Sets the value of the name property.
71      * 
72      * @param value
73      *     allowed object is
74      *     {@link String }
75      *     
76      */
77     public void setName(String value) {
78         this.name = value;
79     }
80
81     /**
82      * Gets the value of the dbReference property.
83      * 
84      * @return
85      *     possible object is
86      *     {@link DbReferenceType }
87      *     
88      */
89     public DbReferenceType getDbReference() {
90         return dbReference;
91     }
92
93     /**
94      * Sets the value of the dbReference property.
95      * 
96      * @param value
97      *     allowed object is
98      *     {@link DbReferenceType }
99      *     
100      */
101     public void setDbReference(DbReferenceType value) {
102         this.dbReference = value;
103     }
104
105     /**
106      * Gets the value of the evidence property.
107      * 
108      * <p>
109      * This accessor method returns a reference to the live list,
110      * not a snapshot. Therefore any modification you make to the
111      * returned list will be present inside the JAXB object.
112      * This is why there is not a <CODE>set</CODE> method for the evidence property.
113      * 
114      * <p>
115      * For example, to add a new item, do as follows:
116      * <pre>
117      *    getEvidence().add(newItem);
118      * </pre>
119      * 
120      * 
121      * <p>
122      * Objects of the following type(s) are allowed in the list
123      * {@link Integer }
124      * 
125      * 
126      */
127     public List<Integer> getEvidence() {
128         if (evidence == null) {
129             evidence = new ArrayList<Integer>();
130         }
131         return this.evidence;
132     }
133
134 }