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