3567be659179ff57a0bb462aae03288325f68386
[jalview.git] / src / jalview / xml / binding / uniprot / NameListType.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.XmlElement;
16 import javax.xml.bind.annotation.XmlElements;
17 import javax.xml.bind.annotation.XmlType;
18
19
20 /**
21  * <p>Java class for nameListType complex type.
22  * 
23  * <p>The following schema fragment specifies the expected content contained within this class.
24  * 
25  * <pre>
26  * &lt;complexType name="nameListType">
27  *   &lt;complexContent>
28  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29  *       &lt;choice maxOccurs="unbounded">
30  *         &lt;element name="consortium" type="{http://uniprot.org/uniprot}consortiumType"/>
31  *         &lt;element name="person" type="{http://uniprot.org/uniprot}personType"/>
32  *       &lt;/choice>
33  *     &lt;/restriction>
34  *   &lt;/complexContent>
35  * &lt;/complexType>
36  * </pre>
37  * 
38  * 
39  */
40 @XmlAccessorType(XmlAccessType.FIELD)
41 @XmlType(name = "nameListType", propOrder = {
42     "consortiumOrPerson"
43 })
44 public class NameListType {
45
46     @XmlElements({
47         @XmlElement(name = "consortium", type = ConsortiumType.class),
48         @XmlElement(name = "person", type = PersonType.class)
49     })
50     protected List<Object> consortiumOrPerson;
51
52     /**
53      * Gets the value of the consortiumOrPerson property.
54      * 
55      * <p>
56      * This accessor method returns a reference to the live list,
57      * not a snapshot. Therefore any modification you make to the
58      * returned list will be present inside the JAXB object.
59      * This is why there is not a <CODE>set</CODE> method for the consortiumOrPerson property.
60      * 
61      * <p>
62      * For example, to add a new item, do as follows:
63      * <pre>
64      *    getConsortiumOrPerson().add(newItem);
65      * </pre>
66      * 
67      * 
68      * <p>
69      * Objects of the following type(s) are allowed in the list
70      * {@link ConsortiumType }
71      * {@link PersonType }
72      * 
73      * 
74      */
75     public List<Object> getConsortiumOrPerson() {
76         if (consortiumOrPerson == null) {
77             consortiumOrPerson = new ArrayList<Object>();
78         }
79         return this.consortiumOrPerson;
80     }
81
82 }