mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
106 lines
2.7 KiB
Java
Executable File
106 lines
2.7 KiB
Java
Executable File
|
|
package org.alfresco.repo.cmis.ws;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlAnyElement;
|
|
import javax.xml.bind.annotation.XmlAttribute;
|
|
import javax.xml.bind.annotation.XmlType;
|
|
import org.w3c.dom.Element;
|
|
|
|
|
|
/**
|
|
* <p>Java class for cmisPropertyXml complex type.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
*
|
|
* <pre>
|
|
* <complexType name="cmisPropertyXml">
|
|
* <complexContent>
|
|
* <extension base="{http://www.cmis.org/2008/05}cmisProperty">
|
|
* <sequence>
|
|
* <any/>
|
|
* </sequence>
|
|
* <attribute ref="{http://www.cmis.org/2008/05}propertyType default="xml""/>
|
|
* </extension>
|
|
* </complexContent>
|
|
* </complexType>
|
|
* </pre>
|
|
*
|
|
*
|
|
*/
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
@XmlType(name = "cmisPropertyXml", propOrder = {
|
|
"any"
|
|
})
|
|
public class CmisPropertyXml
|
|
extends CmisProperty
|
|
{
|
|
|
|
@XmlAnyElement(lax = true)
|
|
protected List<Object> any;
|
|
@XmlAttribute(namespace = "http://www.cmis.org/2008/05")
|
|
protected EnumPropertyType propertyType;
|
|
|
|
/**
|
|
* Gets the value of the any property.
|
|
*
|
|
* <p>
|
|
* 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 JAXB object.
|
|
* This is why there is not a <CODE>set</CODE> method for the any property.
|
|
*
|
|
* <p>
|
|
* For example, to add a new item, do as follows:
|
|
* <pre>
|
|
* getAny().add(newItem);
|
|
* </pre>
|
|
*
|
|
*
|
|
* <p>
|
|
* Objects of the following type(s) are allowed in the list
|
|
* {@link Element }
|
|
* {@link Object }
|
|
*
|
|
*
|
|
*/
|
|
public List<Object> getAny() {
|
|
if (any == null) {
|
|
any = new ArrayList<Object>();
|
|
}
|
|
return this.any;
|
|
}
|
|
|
|
/**
|
|
* Gets the value of the propertyType property.
|
|
*
|
|
* @return
|
|
* possible object is
|
|
* {@link EnumPropertyType }
|
|
*
|
|
*/
|
|
public EnumPropertyType getPropertyType() {
|
|
if (propertyType == null) {
|
|
return EnumPropertyType.XML;
|
|
} else {
|
|
return propertyType;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the propertyType property.
|
|
*
|
|
* @param value
|
|
* allowed object is
|
|
* {@link EnumPropertyType }
|
|
*
|
|
*/
|
|
public void setPropertyType(EnumPropertyType value) {
|
|
this.propertyType = value;
|
|
}
|
|
|
|
}
|