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