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