mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged DEV/CMIS0_61 to HEAD (part 4)
14095 CMIS 0.61 Web Services Including Tests & JavaClient 14123 Several Minor Fixes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14177 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -6,7 +6,6 @@ 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;
|
||||
|
||||
@@ -19,11 +18,20 @@ import org.w3c.dom.Element;
|
||||
* <pre>
|
||||
* <complexType name="cmisPropertyHtml">
|
||||
* <complexContent>
|
||||
* <extension base="{http://www.cmis.org/2008/05}cmisProperty">
|
||||
* <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
|
||||
* <sequence>
|
||||
* <any/>
|
||||
* <element name="value" maxOccurs="unbounded" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <any/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute ref="{http://www.cmis.org/2008/05}propertyType default="html""/>
|
||||
* </extension>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
@@ -32,74 +40,103 @@ import org.w3c.dom.Element;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "cmisPropertyHtml", propOrder = {
|
||||
"any"
|
||||
@XmlType(name = "cmisPropertyHtml", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
|
||||
"value"
|
||||
})
|
||||
public class CmisPropertyHtml
|
||||
extends CmisProperty
|
||||
{
|
||||
|
||||
@XmlAnyElement(lax = true)
|
||||
protected List<Object> any;
|
||||
@XmlAttribute(namespace = "http://www.cmis.org/2008/05")
|
||||
protected EnumPropertyType propertyType;
|
||||
protected List<CmisPropertyHtml.Value> value;
|
||||
|
||||
/**
|
||||
* Gets the value of the any property.
|
||||
* Gets the value of the value 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.
|
||||
* This is why there is not a <CODE>set</CODE> method for the value property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getAny().add(newItem);
|
||||
* getValue().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link Element }
|
||||
* {@link Object }
|
||||
* {@link CmisPropertyHtml.Value }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getAny() {
|
||||
if (any == null) {
|
||||
any = new ArrayList<Object>();
|
||||
public List<CmisPropertyHtml.Value> getValue() {
|
||||
if (value == null) {
|
||||
value = new ArrayList<CmisPropertyHtml.Value>();
|
||||
}
|
||||
return this.any;
|
||||
return this.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the propertyType property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link EnumPropertyType }
|
||||
*
|
||||
*/
|
||||
public EnumPropertyType getPropertyType() {
|
||||
if (propertyType == null) {
|
||||
return EnumPropertyType.HTML;
|
||||
} else {
|
||||
return propertyType;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the propertyType property.
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <any/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link EnumPropertyType }
|
||||
*
|
||||
*/
|
||||
public void setPropertyType(EnumPropertyType value) {
|
||||
this.propertyType = value;
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"any"
|
||||
})
|
||||
public static class Value {
|
||||
|
||||
@XmlAnyElement(lax = true)
|
||||
protected List<Object> any;
|
||||
|
||||
/**
|
||||
* 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 Object }
|
||||
* {@link Element }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Object> getAny() {
|
||||
if (any == null) {
|
||||
any = new ArrayList<Object>();
|
||||
}
|
||||
return this.any;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user