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