All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPermissionMapping Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version

package org.apache.chemistry.opencmis.commons.impl.jaxb;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;


/**
 * 

Java class for cmisPermissionMapping complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="cmisPermissionMapping">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="key" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumAllowableActionsKey"/>
 *         <element name="permission" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
 *         <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "cmisPermissionMapping", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { "key", "permission", "any" }) public class CmisPermissionMapping { @XmlElement(required = true) @XmlSchemaType(name = "string") protected EnumAllowableActionsKey key; @XmlElement(required = true) protected List permission; @XmlAnyElement(lax = true) protected List any; /** * Gets the value of the key property. * * @return * possible object is * {@link EnumAllowableActionsKey } * */ public EnumAllowableActionsKey getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link EnumAllowableActionsKey } * */ public void setKey(EnumAllowableActionsKey value) { this.key = value; } /** * Gets the value of the permission property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the permission property. * *

* For example, to add a new item, do as follows: *

     *    getPermission().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getPermission() { if (permission == null) { permission = new ArrayList(); } return this.permission; } /** * Gets the value of the any property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the any property. * *

* For example, to add a new item, do as follows: *

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * {@link Element } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } }