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