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:
David Caruana
2009-05-01 21:22:09 +00:00
parent 6dda4bdf13
commit a8603091e9
205 changed files with 6264 additions and 5692 deletions

View File

@@ -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>
* &lt;complexType name="cmisPropertyHtml">
* &lt;complexContent>
* &lt;extension base="{http://www.cmis.org/2008/05}cmisProperty">
* &lt;extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
* &lt;sequence>
* &lt;any/>
* &lt;element name="value" maxOccurs="unbounded" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;attribute ref="{http://www.cmis.org/2008/05}propertyType default="html""/>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/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>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/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;
}
}
}