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:
@@ -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>
|
||||
* <complexType name="cmisPropertyString">
|
||||
* <complexContent>
|
||||
* <extension base="{http://www.cmis.org/2008/05}cmisProperty">
|
||||
* <extension base="{http://docs.oasis-open.org/ns/cmis/core/200901}cmisProperty">
|
||||
* <sequence>
|
||||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
||||
* </sequence>
|
||||
* <attribute ref="{http://www.cmis.org/2008/05}propertyType default="string""/>
|
||||
* </extension>
|
||||
* </complexContent>
|
||||
* </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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user