1
2 package org.apache.chemistry.opencmis.commons.impl.jaxb;
3
4 import java.math.BigInteger;
5 import java.util.ArrayList;
6 import java.util.HashMap;
7 import java.util.List;
8 import java.util.Map;
9 import javax.xml.bind.annotation.XmlAccessType;
10 import javax.xml.bind.annotation.XmlAccessorType;
11 import javax.xml.bind.annotation.XmlAnyAttribute;
12 import javax.xml.bind.annotation.XmlAnyElement;
13 import javax.xml.bind.annotation.XmlType;
14 import javax.xml.namespace.QName;
15 import org.w3c.dom.Element;
16
17
18 /**
19 * <p>Java class for cmisTypeDefinitionListType complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType name="cmisTypeDefinitionListType">
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="types" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
29 * <element name="hasMoreItems" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
30 * <element name="numItems" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
31 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
32 * </sequence>
33 * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisUndefinedAttribute"/>
34 * <anyAttribute processContents='lax' namespace='##other'/>
35 * </restriction>
36 * </complexContent>
37 * </complexType>
38 * </pre>
39 *
40 *
41 */
42 @XmlAccessorType(XmlAccessType.FIELD)
43 @XmlType(name = "cmisTypeDefinitionListType", propOrder = {
44 "types",
45 "hasMoreItems",
46 "numItems",
47 "any"
48 })
49 public class CmisTypeDefinitionListType {
50
51 protected List<CmisTypeDefinitionType> types;
52 protected boolean hasMoreItems;
53 protected BigInteger numItems;
54 @XmlAnyElement(lax = true)
55 protected List<Object> any;
56 @XmlAnyAttribute
57 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
58
59 /**
60 * Gets the value of the types property.
61 *
62 * <p>
63 * This accessor method returns a reference to the live list,
64 * not a snapshot. Therefore any modification you make to the
65 * returned list will be present inside the JAXB object.
66 * This is why there is not a <CODE>set</CODE> method for the types property.
67 *
68 * <p>
69 * For example, to add a new item, do as follows:
70 * <pre>
71 * getTypes().add(newItem);
72 * </pre>
73 *
74 *
75 * <p>
76 * Objects of the following type(s) are allowed in the list
77 * {@link CmisTypeDefinitionType }
78 *
79 *
80 */
81 public List<CmisTypeDefinitionType> getTypes() {
82 if (types == null) {
83 types = new ArrayList<CmisTypeDefinitionType>();
84 }
85 return this.types;
86 }
87
88 /**
89 * Gets the value of the hasMoreItems property.
90 *
91 */
92 public boolean isHasMoreItems() {
93 return hasMoreItems;
94 }
95
96 /**
97 * Sets the value of the hasMoreItems property.
98 *
99 */
100 public void setHasMoreItems(boolean value) {
101 this.hasMoreItems = value;
102 }
103
104 /**
105 * Gets the value of the numItems property.
106 *
107 * @return
108 * possible object is
109 * {@link BigInteger }
110 *
111 */
112 public BigInteger getNumItems() {
113 return numItems;
114 }
115
116 /**
117 * Sets the value of the numItems property.
118 *
119 * @param value
120 * allowed object is
121 * {@link BigInteger }
122 *
123 */
124 public void setNumItems(BigInteger value) {
125 this.numItems = value;
126 }
127
128 /**
129 * Gets the value of the any property.
130 *
131 * <p>
132 * This accessor method returns a reference to the live list,
133 * not a snapshot. Therefore any modification you make to the
134 * returned list will be present inside the JAXB object.
135 * This is why there is not a <CODE>set</CODE> method for the any property.
136 *
137 * <p>
138 * For example, to add a new item, do as follows:
139 * <pre>
140 * getAny().add(newItem);
141 * </pre>
142 *
143 *
144 * <p>
145 * Objects of the following type(s) are allowed in the list
146 * {@link Element }
147 * {@link Object }
148 *
149 *
150 */
151 public List<Object> getAny() {
152 if (any == null) {
153 any = new ArrayList<Object>();
154 }
155 return this.any;
156 }
157
158 /**
159 * Gets a map that contains attributes that aren't bound to any typed property on this class.
160 *
161 * <p>
162 * the map is keyed by the name of the attribute and
163 * the value is the string value of the attribute.
164 *
165 * the map returned by this method is live, and you can add new attribute
166 * by updating the map directly. Because of this design, there's no setter.
167 *
168 *
169 * @return
170 * always non-null
171 */
172 public Map<QName, String> getOtherAttributes() {
173 return otherAttributes;
174 }
175
176 }