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: 2013.06.18 at 04:23:29 PM 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.XmlRootElement;
35  import jakarta.xml.bind.annotation.XmlType;
36  
37  /**
38   * <p>Java class for MCRSolrInputDocumentList complex type.
39   * 
40   * <p>The following schema fragment specifies the expected content contained within this class.
41   * 
42   * <pre>
43   * &lt;complexType name="MCRSolrInputDocumentList"&gt;
44   *   &lt;complexContent&gt;
45   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
46   *       &lt;sequence&gt;
47   *         &lt;element name="doc" type="{}MCRSolrInputDocument" maxOccurs="unbounded" minOccurs="0"/&gt;
48   *       &lt;/sequence&gt;
49   *       &lt;attribute name="commitWithin" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
50   *       &lt;attribute name="overwrite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /&gt;
51   *     &lt;/restriction&gt;
52   *   &lt;/complexContent&gt;
53   * &lt;/complexType&gt;
54   * </pre>
55   * 
56   * 
57   */
58  @XmlAccessorType(XmlAccessType.FIELD)
59  @XmlType(name = "MCRSolrInputDocumentList",
60      propOrder = {
61          "doc"
62      })
63  @XmlRootElement(name = "add")
64  public class MCRSolrInputDocumentList {
65  
66      protected List<MCRSolrInputDocument> doc;
67  
68      @XmlAttribute(name = "commitWithin")
69      protected Integer commitWithin;
70  
71      @XmlAttribute(name = "overwrite")
72      protected Boolean overwrite;
73  
74      /**
75       * Gets the value of the doc property.
76       * 
77       * <p>
78       * This accessor method returns a reference to the live list,
79       * not a snapshot. Therefore any modification you make to the
80       * returned list will be present inside the JAXB object.
81       * This is why there is not a <CODE>set</CODE> method for the doc property.
82       * 
83       * <p>
84       * For example, to add a new item, do as follows:
85       * <pre>
86       *    getDoc().add(newItem);
87       * </pre>
88       * 
89       * 
90       * <p>
91       * Objects of the following type(s) are allowed in the list
92       * {@link MCRSolrInputDocument }
93       * 
94       * 
95       */
96      public List<MCRSolrInputDocument> getDoc() {
97          if (doc == null) {
98              doc = new ArrayList<>();
99          }
100         return this.doc;
101     }
102 
103     /**
104      * Gets the value of the commitWithin property.
105      * 
106      * @return
107      *     possible object is
108      *     {@link Integer }
109      *     
110      */
111     public Integer getCommitWithin() {
112         return commitWithin;
113     }
114 
115     /**
116      * Sets the value of the commitWithin property.
117      * 
118      * @param value
119      *     allowed object is
120      *     {@link Integer }
121      *     
122      */
123     public void setCommitWithin(Integer value) {
124         this.commitWithin = value;
125     }
126 
127     /**
128      * Gets the value of the overwrite property.
129      * 
130      * @return
131      *     possible object is
132      *     {@link Boolean }
133      *     
134      */
135     public boolean isOverwrite() {
136         if (overwrite == null) {
137             return true;
138         } else {
139             return overwrite;
140         }
141     }
142 
143     /**
144      * Sets the value of the overwrite property.
145      * 
146      * @param value
147      *     allowed object is
148      *     {@link Boolean }
149      *     
150      */
151     public void setOverwrite(Boolean value) {
152         this.overwrite = value;
153     }
154 
155 }