View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  //
20  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
21  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
22  // Any modifications to this file will be lost upon recompilation of the source schema. 
23  // Generated on: 2014.04.29 at 08:30:43 AM CEST 
24  //
25  
26  package org.mycore.solr.index.document.jaxb;
27  
28  import java.util.ArrayList;
29  import java.util.List;
30  
31  import jakarta.xml.bind.annotation.XmlAccessType;
32  import jakarta.xml.bind.annotation.XmlAccessorType;
33  import jakarta.xml.bind.annotation.XmlAttribute;
34  import jakarta.xml.bind.annotation.XmlElement;
35  import jakarta.xml.bind.annotation.XmlElements;
36  import jakarta.xml.bind.annotation.XmlID;
37  import jakarta.xml.bind.annotation.XmlSchemaType;
38  import jakarta.xml.bind.annotation.XmlType;
39  import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
40  import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
41  
42  /**
43   * <p>Java class for MCRSolrInputDocument complex type.
44   * 
45   * <p>The following schema fragment specifies the expected content contained within this class.
46   * 
47   * <pre>
48   * &lt;complexType name="MCRSolrInputDocument"&gt;
49   *   &lt;complexContent&gt;
50   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
51   *       &lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
52   *         &lt;element name="field" type="{}MCRSolrInputField"/&gt;
53   *         &lt;element name="doc" type="{}MCRSolrInputDocument"/&gt;
54   *       &lt;/choice&gt;
55   *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /&gt;
56   *       &lt;attribute name="boost" type="{http://www.w3.org/2001/XMLSchema}decimal" /&gt;
57   *     &lt;/restriction&gt;
58   *   &lt;/complexContent&gt;
59   * &lt;/complexType&gt;
60   * </pre>
61   * 
62   * 
63   */
64  @XmlAccessorType(XmlAccessType.FIELD)
65  @XmlType(name = "MCRSolrInputDocument",
66      propOrder = {
67          "fieldOrDoc"
68      })
69  public class MCRSolrInputDocument {
70  
71      @XmlElements({
72          @XmlElement(name = "field", type = MCRSolrInputField.class),
73          @XmlElement(name = "doc", type = MCRSolrInputDocument.class)
74      })
75      protected List<Object> fieldOrDoc;
76  
77      @XmlAttribute(name = "id")
78      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
79      @XmlID
80      @XmlSchemaType(name = "ID")
81      protected String id;
82  
83      /**
84       * Gets the value of the fieldOrDoc property.
85       * 
86       * <p>
87       * This accessor method returns a reference to the live list,
88       * not a snapshot. Therefore any modification you make to the
89       * returned list will be present inside the JAXB object.
90       * This is why there is not a <CODE>set</CODE> method for the fieldOrDoc property.
91       * 
92       * <p>
93       * For example, to add a new item, do as follows:
94       * <pre>
95       *    getFieldOrDoc().add(newItem);
96       * </pre>
97       * 
98       * 
99       * <p>
100      * Objects of the following type(s) are allowed in the list
101      * {@link MCRSolrInputField }
102      * {@link MCRSolrInputDocument }
103      * 
104      * 
105      */
106     public List<Object> getFieldOrDoc() {
107         if (fieldOrDoc == null) {
108             fieldOrDoc = new ArrayList<>();
109         }
110         return this.fieldOrDoc;
111     }
112 
113     /**
114      * Gets the value of the id property.
115      * 
116      * @return
117      *     possible object is
118      *     {@link String }
119      *     
120      */
121     public String getId() {
122         return id;
123     }
124 
125     /**
126      * Sets the value of the id property.
127      * 
128      * @param value
129      *     allowed object is
130      *     {@link String }
131      *     
132      */
133     public void setId(String value) {
134         this.id = value;
135     }
136 
137 }