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

@@ -1,9 +1,10 @@
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.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@@ -15,11 +16,10 @@ import javax.xml.bind.annotation.XmlType;
* <pre>
* &lt;complexType name="cmisPropertyString">
* &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;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;attribute ref="{http://www.cmis.org/2008/05}propertyType default="string""/>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
@@ -28,67 +28,42 @@ import javax.xml.bind.annotation.XmlType;
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cmisPropertyString", propOrder = {
@XmlType(name = "cmisPropertyString", namespace = "http://docs.oasis-open.org/ns/cmis/core/200901", propOrder = {
"value"
})
public class CmisPropertyString
extends CmisProperty
{
protected String value;
@XmlAttribute(namespace = "http://www.cmis.org/2008/05")
protected EnumPropertyType propertyType;
protected List<String> value;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets 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 value property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getValue().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the propertyType property.
*
* @return
* possible object is
* {@link EnumPropertyType }
*
*/
public EnumPropertyType getPropertyType() {
if (propertyType == null) {
return EnumPropertyType.STRING;
} else {
return propertyType;
public List<String> getValue() {
if (value == null) {
value = new ArrayList<String>();
}
}
/**
* Sets the value of the propertyType property.
*
* @param value
* allowed object is
* {@link EnumPropertyType }
*
*/
public void setPropertyType(EnumPropertyType value) {
this.propertyType = value;
return this.value;
}
}