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.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlAnyElement;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import javax.xml.datatype.XMLGregorianCalendar;
13 import org.w3c.dom.Element;
14
15
16 /**
17 * <p>Java class for cmisChangeEventType complex type.
18 *
19 * <p>The following schema fragment specifies the expected content contained within this class.
20 *
21 * <pre>
22 * <complexType name="cmisChangeEventType">
23 * <complexContent>
24 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25 * <sequence>
26 * <element name="changeType" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumTypeOfChanges"/>
27 * <element name="changeTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
28 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
29 * </sequence>
30 * </restriction>
31 * </complexContent>
32 * </complexType>
33 * </pre>
34 *
35 *
36 */
37 @XmlAccessorType(XmlAccessType.FIELD)
38 @XmlType(name = "cmisChangeEventType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = {
39 "changeType",
40 "changeTime",
41 "any"
42 })
43 public class CmisChangeEventType {
44
45 @XmlElement(required = true)
46 protected EnumTypeOfChanges changeType;
47 @XmlElement(required = true)
48 @XmlSchemaType(name = "dateTime")
49 protected XMLGregorianCalendar changeTime;
50 @XmlAnyElement(lax = true)
51 protected List<Object> any;
52
53 /**
54 * Gets the value of the changeType property.
55 *
56 * @return
57 * possible object is
58 * {@link EnumTypeOfChanges }
59 *
60 */
61 public EnumTypeOfChanges getChangeType() {
62 return changeType;
63 }
64
65 /**
66 * Sets the value of the changeType property.
67 *
68 * @param value
69 * allowed object is
70 * {@link EnumTypeOfChanges }
71 *
72 */
73 public void setChangeType(EnumTypeOfChanges value) {
74 this.changeType = value;
75 }
76
77 /**
78 * Gets the value of the changeTime property.
79 *
80 * @return
81 * possible object is
82 * {@link XMLGregorianCalendar }
83 *
84 */
85 public XMLGregorianCalendar getChangeTime() {
86 return changeTime;
87 }
88
89 /**
90 * Sets the value of the changeTime property.
91 *
92 * @param value
93 * allowed object is
94 * {@link XMLGregorianCalendar }
95 *
96 */
97 public void setChangeTime(XMLGregorianCalendar value) {
98 this.changeTime = value;
99 }
100
101 /**
102 * Gets the value of the any property.
103 *
104 * <p>
105 * This accessor method returns a reference to the live list,
106 * not a snapshot. Therefore any modification you make to the
107 * returned list will be present inside the JAXB object.
108 * This is why there is not a <CODE>set</CODE> method for the any property.
109 *
110 * <p>
111 * For example, to add a new item, do as follows:
112 * <pre>
113 * getAny().add(newItem);
114 * </pre>
115 *
116 *
117 * <p>
118 * Objects of the following type(s) are allowed in the list
119 * {@link Element }
120 * {@link Object }
121 *
122 *
123 */
124 public List<Object> getAny() {
125 if (any == null) {
126 any = new ArrayList<Object>();
127 }
128 return this.any;
129 }
130
131 }