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@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
149 lines
3.5 KiB
Java
149 lines
3.5 KiB
Java
|
|
package org.alfresco.repo.cmis.ws;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlElement;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
import javax.xml.bind.annotation.XmlType;
|
|
|
|
|
|
/**
|
|
* <p>Java class for contentStream element declaration.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
*
|
|
* <pre>
|
|
* <element name="contentStream">
|
|
* <complexType>
|
|
* <complexContent>
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
|
* <sequence>
|
|
* <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
|
* <element ref="{http://www.cmis.org/ns/1.0}name" minOccurs="0"/>
|
|
* <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
|
|
* <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
|
|
* </sequence>
|
|
* </restriction>
|
|
* </complexContent>
|
|
* </complexType>
|
|
* </element>
|
|
* </pre>
|
|
*
|
|
*
|
|
*/
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
@XmlType(name = "", propOrder = {
|
|
"mimeType",
|
|
"name",
|
|
"uri",
|
|
"stream"
|
|
})
|
|
@XmlRootElement(name = "contentStream")
|
|
public class ContentStream {
|
|
|
|
@XmlElement(namespace = "http://www.cmis.org/ns/1.0")
|
|
protected String mimeType;
|
|
@XmlElement(namespace = "http://www.cmis.org/ns/1.0")
|
|
protected String name;
|
|
@XmlElement(namespace = "http://www.cmis.org/ns/1.0")
|
|
protected String uri;
|
|
@XmlElement(namespace = "http://www.cmis.org/ns/1.0")
|
|
protected byte[] stream;
|
|
|
|
/**
|
|
* Gets the value of the mimeType property.
|
|
*
|
|
* @return
|
|
* possible object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public String getMimeType() {
|
|
return mimeType;
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the mimeType property.
|
|
*
|
|
* @param value
|
|
* allowed object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public void setMimeType(String value) {
|
|
this.mimeType = value;
|
|
}
|
|
|
|
/**
|
|
* Gets the value of the name property.
|
|
*
|
|
* @return
|
|
* possible object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the name property.
|
|
*
|
|
* @param value
|
|
* allowed object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public void setName(String value) {
|
|
this.name = value;
|
|
}
|
|
|
|
/**
|
|
* Gets the value of the uri property.
|
|
*
|
|
* @return
|
|
* possible object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public String getUri() {
|
|
return uri;
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the uri property.
|
|
*
|
|
* @param value
|
|
* allowed object is
|
|
* {@link String }
|
|
*
|
|
*/
|
|
public void setUri(String value) {
|
|
this.uri = value;
|
|
}
|
|
|
|
/**
|
|
* Gets the value of the stream property.
|
|
*
|
|
* @return
|
|
* possible object is
|
|
* byte[]
|
|
*/
|
|
public byte[] getStream() {
|
|
return stream;
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the stream property.
|
|
*
|
|
* @param value
|
|
* allowed object is
|
|
* byte[]
|
|
*/
|
|
public void setStream(byte[] value) {
|
|
this.stream = ((byte[]) value);
|
|
}
|
|
|
|
}
|