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.XmlType;
9
10
11 /**
12 * <p>Java class for cmisPropertyDateTimeDefinitionType complex type.
13 *
14 * <p>The following schema fragment specifies the expected content contained within this class.
15 *
16 * <pre>
17 * <complexType name="cmisPropertyDateTimeDefinitionType">
18 * <complexContent>
19 * <extension base="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDefinitionType">
20 * <sequence>
21 * <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDateTime" minOccurs="0"/>
22 * <element name="resolution" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumDateTimeResolution" minOccurs="0"/>
23 * <element name="choice" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoiceDateTime" maxOccurs="unbounded" minOccurs="0"/>
24 * </sequence>
25 * <anyAttribute processContents='lax' namespace='##other'/>
26 * </extension>
27 * </complexContent>
28 * </complexType>
29 * </pre>
30 *
31 *
32 */
33 @XmlAccessorType(XmlAccessType.FIELD)
34 @XmlType(name = "cmisPropertyDateTimeDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = {
35 "defaultValue",
36 "resolution",
37 "choice"
38 })
39 public class CmisPropertyDateTimeDefinitionType
40 extends CmisPropertyDefinitionType
41 {
42
43 protected CmisPropertyDateTime defaultValue;
44 protected EnumDateTimeResolution resolution;
45 protected List<CmisChoiceDateTime> choice;
46
47 /**
48 * Gets the value of the defaultValue property.
49 *
50 * @return
51 * possible object is
52 * {@link CmisPropertyDateTime }
53 *
54 */
55 public CmisPropertyDateTime getDefaultValue() {
56 return defaultValue;
57 }
58
59 /**
60 * Sets the value of the defaultValue property.
61 *
62 * @param value
63 * allowed object is
64 * {@link CmisPropertyDateTime }
65 *
66 */
67 public void setDefaultValue(CmisPropertyDateTime value) {
68 this.defaultValue = value;
69 }
70
71 /**
72 * Gets the value of the resolution property.
73 *
74 * @return
75 * possible object is
76 * {@link EnumDateTimeResolution }
77 *
78 */
79 public EnumDateTimeResolution getResolution() {
80 return resolution;
81 }
82
83 /**
84 * Sets the value of the resolution property.
85 *
86 * @param value
87 * allowed object is
88 * {@link EnumDateTimeResolution }
89 *
90 */
91 public void setResolution(EnumDateTimeResolution value) {
92 this.resolution = value;
93 }
94
95 /**
96 * Gets the value of the choice property.
97 *
98 * <p>
99 * This accessor method returns a reference to the live list,
100 * not a snapshot. Therefore any modification you make to the
101 * returned list will be present inside the JAXB object.
102 * This is why there is not a <CODE>set</CODE> method for the choice property.
103 *
104 * <p>
105 * For example, to add a new item, do as follows:
106 * <pre>
107 * getChoice().add(newItem);
108 * </pre>
109 *
110 *
111 * <p>
112 * Objects of the following type(s) are allowed in the list
113 * {@link CmisChoiceDateTime }
114 *
115 *
116 */
117 public List<CmisChoiceDateTime> getChoice() {
118 if (choice == null) {
119 choice = new ArrayList<CmisChoiceDateTime>();
120 }
121 return this.choice;
122 }
123
124 }