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