a850dbb5afdf55f02a639796e5dfdc9056684442
[jalview.git] / src / jalview / xml / binding / uniprot / PositionType.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.math.BigInteger;
12 import java.util.ArrayList;
13 import java.util.List;
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlAttribute;
17 import javax.xml.bind.annotation.XmlSchemaType;
18 import javax.xml.bind.annotation.XmlType;
19
20
21 /**
22  * <p>Java class for positionType complex type.
23  * 
24  * <p>The following schema fragment specifies the expected content contained within this class.
25  * 
26  * <pre>
27  * &lt;complexType name="positionType">
28  *   &lt;complexContent>
29  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30  *       &lt;attribute name="position" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
31  *       &lt;attribute name="status" default="certain">
32  *         &lt;simpleType>
33  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
34  *             &lt;enumeration value="certain"/>
35  *             &lt;enumeration value="uncertain"/>
36  *             &lt;enumeration value="less than"/>
37  *             &lt;enumeration value="greater than"/>
38  *             &lt;enumeration value="unknown"/>
39  *           &lt;/restriction>
40  *         &lt;/simpleType>
41  *       &lt;/attribute>
42  *       &lt;attribute name="evidence" type="{http://uniprot.org/uniprot}intListType" />
43  *     &lt;/restriction>
44  *   &lt;/complexContent>
45  * &lt;/complexType>
46  * </pre>
47  * 
48  * 
49  */
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "positionType")
52 public class PositionType {
53
54     @XmlAttribute(name = "position")
55     @XmlSchemaType(name = "unsignedLong")
56     protected BigInteger position;
57     @XmlAttribute(name = "status")
58     protected String status;
59     @XmlAttribute(name = "evidence")
60     protected List<Integer> evidence;
61
62     /**
63      * Gets the value of the position property.
64      * 
65      * @return
66      *     possible object is
67      *     {@link BigInteger }
68      *     
69      */
70     public BigInteger getPosition() {
71         return position;
72     }
73
74     /**
75      * Sets the value of the position property.
76      * 
77      * @param value
78      *     allowed object is
79      *     {@link BigInteger }
80      *     
81      */
82     public void setPosition(BigInteger value) {
83         this.position = value;
84     }
85
86     /**
87      * Gets the value of the status property.
88      * 
89      * @return
90      *     possible object is
91      *     {@link String }
92      *     
93      */
94     public String getStatus() {
95         if (status == null) {
96             return "certain";
97         } else {
98             return status;
99         }
100     }
101
102     /**
103      * Sets the value of the status property.
104      * 
105      * @param value
106      *     allowed object is
107      *     {@link String }
108      *     
109      */
110     public void setStatus(String value) {
111         this.status = value;
112     }
113
114     /**
115      * Gets the value of the evidence property.
116      * 
117      * <p>
118      * This accessor method returns a reference to the live list,
119      * not a snapshot. Therefore any modification you make to the
120      * returned list will be present inside the JAXB object.
121      * This is why there is not a <CODE>set</CODE> method for the evidence property.
122      * 
123      * <p>
124      * For example, to add a new item, do as follows:
125      * <pre>
126      *    getEvidence().add(newItem);
127      * </pre>
128      * 
129      * 
130      * <p>
131      * Objects of the following type(s) are allowed in the list
132      * {@link Integer }
133      * 
134      * 
135      */
136     public List<Integer> getEvidence() {
137         if (evidence == null) {
138             evidence = new ArrayList<Integer>();
139         }
140         return this.evidence;
141     }
142
143 }