View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  
22  package org.oasis_open.docs.wsrf.rp_2;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  import javax.xml.bind.annotation.XmlAccessType;
27  import javax.xml.bind.annotation.XmlAccessorType;
28  import javax.xml.bind.annotation.XmlElement;
29  import javax.xml.bind.annotation.XmlElements;
30  import javax.xml.bind.annotation.XmlRootElement;
31  import javax.xml.bind.annotation.XmlType;
32  
33  
34  /**
35   * <p>Java class for anonymous complex type.
36   * 
37   * <p>The following schema fragment specifies the expected content contained within this class.
38   * 
39   * <pre>
40   * &lt;complexType>
41   *   &lt;complexContent>
42   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43   *       &lt;choice maxOccurs="unbounded">
44   *         &lt;element ref="{http://docs.oasis-open.org/wsrf/rp-2}Insert"/>
45   *         &lt;element ref="{http://docs.oasis-open.org/wsrf/rp-2}Update"/>
46   *         &lt;element ref="{http://docs.oasis-open.org/wsrf/rp-2}Delete"/>
47   *       &lt;/choice>
48   *     &lt;/restriction>
49   *   &lt;/complexContent>
50   * &lt;/complexType>
51   * </pre>
52   * 
53   * 
54   */
55  @XmlAccessorType(XmlAccessType.FIELD)
56  @XmlType(name = "", propOrder = {
57      "insertOrUpdateOrDelete"
58  })
59  @XmlRootElement(name = "SetResourceProperties")
60  public class SetResourceProperties {
61  
62      @XmlElements({
63          @XmlElement(name = "Insert", type = InsertType.class),
64          @XmlElement(name = "Update", type = UpdateType.class),
65          @XmlElement(name = "Delete", type = DeleteType.class)
66      })
67      protected List<Object> insertOrUpdateOrDelete;
68  
69      /**
70       * Gets the value of the insertOrUpdateOrDelete property.
71       * 
72       * <p>
73       * This accessor method returns a reference to the live list,
74       * not a snapshot. Therefore any modification you make to the
75       * returned list will be present inside the JAXB object.
76       * This is why there is not a <CODE>set</CODE> method for the insertOrUpdateOrDelete property.
77       * 
78       * <p>
79       * For example, to add a new item, do as follows:
80       * <pre>
81       *    getInsertOrUpdateOrDelete().add(newItem);
82       * </pre>
83       * 
84       * 
85       * <p>
86       * Objects of the following type(s) are allowed in the list
87       * {@link InsertType }
88       * {@link UpdateType }
89       * {@link DeleteType }
90       * 
91       * 
92       */
93      public List<Object> getInsertOrUpdateOrDelete() {
94          if (insertOrUpdateOrDelete == null) {
95              insertOrUpdateOrDelete = new ArrayList<Object>();
96          }
97          return this.insertOrUpdateOrDelete;
98      }
99  
100 }