95dc890b21d909b78decb39ebab8eaf177e05440
[jalview.git] / src / jalview / xml / binding / uniprot / NameListType.java
1 //
2 // This file was generated by the Eclipse Implementation of JAXB, v2.3.3 
3 // See https://eclipse-ee4j.github.io/jaxb-ri 
4 // Any modifications to this file will be lost upon recompilation of the source schema. 
5 // Generated on: 2022.02.07 at 04:44:21 PM GMT 
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  * <complexType name="nameListType">
27  *   <complexContent>
28  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29  *       <choice maxOccurs="unbounded">
30  *         <element name="consortium" type="{http://uniprot.org/uniprot}consortiumType"/>
31  *         <element name="person" type="{http://uniprot.org/uniprot}personType"/>
32  *       </choice>
33  *     </restriction>
34  *   </complexContent>
35  * </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      * &lt;p&gt;
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 &lt;CODE&gt;set&lt;/CODE&gt; method for the consortiumOrPerson property.
60      * 
61      * &lt;p&gt;
62      * For example, to add a new item, do as follows:
63      * &lt;pre&gt;
64      *    getConsortiumOrPerson().add(newItem);
65      * &lt;/pre&gt;
66      * 
67      * 
68      * &lt;p&gt;
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 }