This project has retired. For details please refer to its Attic page.
CreateDocument xref

1   
2   package org.apache.chemistry.opencmis.commons.impl.jaxb;
3   
4   import java.util.ArrayList;
5   import java.util.List;
6   import javax.xml.bind.JAXBElement;
7   import javax.xml.bind.annotation.XmlAccessType;
8   import javax.xml.bind.annotation.XmlAccessorType;
9   import javax.xml.bind.annotation.XmlElement;
10  import javax.xml.bind.annotation.XmlElementRef;
11  import javax.xml.bind.annotation.XmlRootElement;
12  import javax.xml.bind.annotation.XmlType;
13  
14  
15  /**
16   * <p>Java class for anonymous complex type.
17   * 
18   * <p>The following schema fragment specifies the expected content contained within this class.
19   * 
20   * <pre>
21   * &lt;complexType>
22   *   &lt;complexContent>
23   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24   *       &lt;sequence>
25   *         &lt;element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
26   *         &lt;element name="properties" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertiesType"/>
27   *         &lt;element name="folderId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
28   *         &lt;element name="contentStream" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}cmisContentStreamType" minOccurs="0"/>
29   *         &lt;element name="versioningState" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumVersioningState" minOccurs="0"/>
30   *         &lt;element name="policies" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
31   *         &lt;element name="addACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
32   *         &lt;element name="removeACEs" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisAccessControlListType" minOccurs="0"/>
33   *         &lt;element name="extension" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}cmisExtensionType" minOccurs="0"/>
34   *       &lt;/sequence>
35   *     &lt;/restriction>
36   *   &lt;/complexContent>
37   * &lt;/complexType>
38   * </pre>
39   * 
40   * 
41   */
42  @XmlAccessorType(XmlAccessType.FIELD)
43  @XmlType(name = "", propOrder = {
44      "repositoryId",
45      "properties",
46      "folderId",
47      "contentStream",
48      "versioningState",
49      "policies",
50      "addACEs",
51      "removeACEs",
52      "extension"
53  })
54  @XmlRootElement(name = "createDocument")
55  public class CreateDocument {
56  
57      @XmlElement(required = true)
58      protected String repositoryId;
59      @XmlElement(required = true)
60      protected CmisPropertiesType properties;
61      @XmlElementRef(name = "folderId", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
62      protected JAXBElement<String> folderId;
63      @XmlElementRef(name = "contentStream", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
64      protected JAXBElement<CmisContentStreamType> contentStream;
65      @XmlElementRef(name = "versioningState", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
66      protected JAXBElement<EnumVersioningState> versioningState;
67      @XmlElement(nillable = true)
68      protected List<String> policies;
69      @XmlElementRef(name = "addACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
70      protected JAXBElement<CmisAccessControlListType> addACEs;
71      @XmlElementRef(name = "removeACEs", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
72      protected JAXBElement<CmisAccessControlListType> removeACEs;
73      @XmlElementRef(name = "extension", namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", type = JAXBElement.class)
74      protected JAXBElement<CmisExtensionType> extension;
75  
76      /**
77       * Gets the value of the repositoryId property.
78       * 
79       * @return
80       *     possible object is
81       *     {@link String }
82       *     
83       */
84      public String getRepositoryId() {
85          return repositoryId;
86      }
87  
88      /**
89       * Sets the value of the repositoryId property.
90       * 
91       * @param value
92       *     allowed object is
93       *     {@link String }
94       *     
95       */
96      public void setRepositoryId(String value) {
97          this.repositoryId = value;
98      }
99  
100     /**
101      * Gets the value of the properties property.
102      * 
103      * @return
104      *     possible object is
105      *     {@link CmisPropertiesType }
106      *     
107      */
108     public CmisPropertiesType getProperties() {
109         return properties;
110     }
111 
112     /**
113      * Sets the value of the properties property.
114      * 
115      * @param value
116      *     allowed object is
117      *     {@link CmisPropertiesType }
118      *     
119      */
120     public void setProperties(CmisPropertiesType value) {
121         this.properties = value;
122     }
123 
124     /**
125      * Gets the value of the folderId property.
126      * 
127      * @return
128      *     possible object is
129      *     {@link JAXBElement }{@code <}{@link String }{@code >}
130      *     
131      */
132     public JAXBElement<String> getFolderId() {
133         return folderId;
134     }
135 
136     /**
137      * Sets the value of the folderId property.
138      * 
139      * @param value
140      *     allowed object is
141      *     {@link JAXBElement }{@code <}{@link String }{@code >}
142      *     
143      */
144     public void setFolderId(JAXBElement<String> value) {
145         this.folderId = ((JAXBElement<String> ) value);
146     }
147 
148     /**
149      * Gets the value of the contentStream property.
150      * 
151      * @return
152      *     possible object is
153      *     {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}
154      *     
155      */
156     public JAXBElement<CmisContentStreamType> getContentStream() {
157         return contentStream;
158     }
159 
160     /**
161      * Sets the value of the contentStream property.
162      * 
163      * @param value
164      *     allowed object is
165      *     {@link JAXBElement }{@code <}{@link CmisContentStreamType }{@code >}
166      *     
167      */
168     public void setContentStream(JAXBElement<CmisContentStreamType> value) {
169         this.contentStream = ((JAXBElement<CmisContentStreamType> ) value);
170     }
171 
172     /**
173      * Gets the value of the versioningState property.
174      * 
175      * @return
176      *     possible object is
177      *     {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >}
178      *     
179      */
180     public JAXBElement<EnumVersioningState> getVersioningState() {
181         return versioningState;
182     }
183 
184     /**
185      * Sets the value of the versioningState property.
186      * 
187      * @param value
188      *     allowed object is
189      *     {@link JAXBElement }{@code <}{@link EnumVersioningState }{@code >}
190      *     
191      */
192     public void setVersioningState(JAXBElement<EnumVersioningState> value) {
193         this.versioningState = ((JAXBElement<EnumVersioningState> ) value);
194     }
195 
196     /**
197      * Gets the value of the policies property.
198      * 
199      * <p>
200      * This accessor method returns a reference to the live list,
201      * not a snapshot. Therefore any modification you make to the
202      * returned list will be present inside the JAXB object.
203      * This is why there is not a <CODE>set</CODE> method for the policies property.
204      * 
205      * <p>
206      * For example, to add a new item, do as follows:
207      * <pre>
208      *    getPolicies().add(newItem);
209      * </pre>
210      * 
211      * 
212      * <p>
213      * Objects of the following type(s) are allowed in the list
214      * {@link String }
215      * 
216      * 
217      */
218     public List<String> getPolicies() {
219         if (policies == null) {
220             policies = new ArrayList<String>();
221         }
222         return this.policies;
223     }
224 
225     /**
226      * Gets the value of the addACEs property.
227      * 
228      * @return
229      *     possible object is
230      *     {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
231      *     
232      */
233     public JAXBElement<CmisAccessControlListType> getAddACEs() {
234         return addACEs;
235     }
236 
237     /**
238      * Sets the value of the addACEs property.
239      * 
240      * @param value
241      *     allowed object is
242      *     {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
243      *     
244      */
245     public void setAddACEs(JAXBElement<CmisAccessControlListType> value) {
246         this.addACEs = ((JAXBElement<CmisAccessControlListType> ) value);
247     }
248 
249     /**
250      * Gets the value of the removeACEs property.
251      * 
252      * @return
253      *     possible object is
254      *     {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
255      *     
256      */
257     public JAXBElement<CmisAccessControlListType> getRemoveACEs() {
258         return removeACEs;
259     }
260 
261     /**
262      * Sets the value of the removeACEs property.
263      * 
264      * @param value
265      *     allowed object is
266      *     {@link JAXBElement }{@code <}{@link CmisAccessControlListType }{@code >}
267      *     
268      */
269     public void setRemoveACEs(JAXBElement<CmisAccessControlListType> value) {
270         this.removeACEs = ((JAXBElement<CmisAccessControlListType> ) value);
271     }
272 
273     /**
274      * Gets the value of the extension property.
275      * 
276      * @return
277      *     possible object is
278      *     {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
279      *     
280      */
281     public JAXBElement<CmisExtensionType> getExtension() {
282         return extension;
283     }
284 
285     /**
286      * Sets the value of the extension property.
287      * 
288      * @param value
289      *     allowed object is
290      *     {@link JAXBElement }{@code <}{@link CmisExtensionType }{@code >}
291      *     
292      */
293     public void setExtension(JAXBElement<CmisExtensionType> value) {
294         this.extension = ((JAXBElement<CmisExtensionType> ) value);
295     }
296 
297 }