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