mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
256 lines
7.8 KiB
Java
256 lines
7.8 KiB
Java
/**
|
|
* Content.java
|
|
*
|
|
* This file was auto-generated from WSDL
|
|
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
|
*/
|
|
|
|
package org.alfresco.repo.webservice.content;
|
|
|
|
public class Content implements java.io.Serializable {
|
|
private org.alfresco.repo.webservice.types.Reference node;
|
|
private java.lang.String property;
|
|
private long length;
|
|
private org.alfresco.repo.webservice.types.ContentFormat format;
|
|
private java.lang.String url;
|
|
|
|
public Content() {
|
|
}
|
|
|
|
public Content(
|
|
org.alfresco.repo.webservice.types.Reference node,
|
|
java.lang.String property,
|
|
long length,
|
|
org.alfresco.repo.webservice.types.ContentFormat format,
|
|
java.lang.String url) {
|
|
this.node = node;
|
|
this.property = property;
|
|
this.length = length;
|
|
this.format = format;
|
|
this.url = url;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the node value for this Content.
|
|
*
|
|
* @return node
|
|
*/
|
|
public org.alfresco.repo.webservice.types.Reference getNode() {
|
|
return node;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the node value for this Content.
|
|
*
|
|
* @param node
|
|
*/
|
|
public void setNode(org.alfresco.repo.webservice.types.Reference node) {
|
|
this.node = node;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the property value for this Content.
|
|
*
|
|
* @return property
|
|
*/
|
|
public java.lang.String getProperty() {
|
|
return property;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the property value for this Content.
|
|
*
|
|
* @param property
|
|
*/
|
|
public void setProperty(java.lang.String property) {
|
|
this.property = property;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the length value for this Content.
|
|
*
|
|
* @return length
|
|
*/
|
|
public long getLength() {
|
|
return length;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the length value for this Content.
|
|
*
|
|
* @param length
|
|
*/
|
|
public void setLength(long length) {
|
|
this.length = length;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the format value for this Content.
|
|
*
|
|
* @return format
|
|
*/
|
|
public org.alfresco.repo.webservice.types.ContentFormat getFormat() {
|
|
return format;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the format value for this Content.
|
|
*
|
|
* @param format
|
|
*/
|
|
public void setFormat(org.alfresco.repo.webservice.types.ContentFormat format) {
|
|
this.format = format;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the url value for this Content.
|
|
*
|
|
* @return url
|
|
*/
|
|
public java.lang.String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the url value for this Content.
|
|
*
|
|
* @param url
|
|
*/
|
|
public void setUrl(java.lang.String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
private java.lang.Object __equalsCalc = null;
|
|
public synchronized boolean equals(java.lang.Object obj) {
|
|
if (!(obj instanceof Content)) return false;
|
|
Content other = (Content) obj;
|
|
if (obj == null) return false;
|
|
if (this == obj) return true;
|
|
if (__equalsCalc != null) {
|
|
return (__equalsCalc == obj);
|
|
}
|
|
__equalsCalc = obj;
|
|
boolean _equals;
|
|
_equals = true &&
|
|
((this.node==null && other.getNode()==null) ||
|
|
(this.node!=null &&
|
|
this.node.equals(other.getNode()))) &&
|
|
((this.property==null && other.getProperty()==null) ||
|
|
(this.property!=null &&
|
|
this.property.equals(other.getProperty()))) &&
|
|
this.length == other.getLength() &&
|
|
((this.format==null && other.getFormat()==null) ||
|
|
(this.format!=null &&
|
|
this.format.equals(other.getFormat()))) &&
|
|
((this.url==null && other.getUrl()==null) ||
|
|
(this.url!=null &&
|
|
this.url.equals(other.getUrl())));
|
|
__equalsCalc = null;
|
|
return _equals;
|
|
}
|
|
|
|
private boolean __hashCodeCalc = false;
|
|
public synchronized int hashCode() {
|
|
if (__hashCodeCalc) {
|
|
return 0;
|
|
}
|
|
__hashCodeCalc = true;
|
|
int _hashCode = 1;
|
|
if (getNode() != null) {
|
|
_hashCode += getNode().hashCode();
|
|
}
|
|
if (getProperty() != null) {
|
|
_hashCode += getProperty().hashCode();
|
|
}
|
|
_hashCode += new Long(getLength()).hashCode();
|
|
if (getFormat() != null) {
|
|
_hashCode += getFormat().hashCode();
|
|
}
|
|
if (getUrl() != null) {
|
|
_hashCode += getUrl().hashCode();
|
|
}
|
|
__hashCodeCalc = false;
|
|
return _hashCode;
|
|
}
|
|
|
|
// Type metadata
|
|
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
new org.apache.axis.description.TypeDesc(Content.class, true);
|
|
|
|
static {
|
|
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "Content"));
|
|
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
elemField.setFieldName("node");
|
|
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "node"));
|
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
|
|
elemField.setNillable(false);
|
|
typeDesc.addFieldDesc(elemField);
|
|
elemField = new org.apache.axis.description.ElementDesc();
|
|
elemField.setFieldName("property");
|
|
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "property"));
|
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
elemField.setNillable(false);
|
|
typeDesc.addFieldDesc(elemField);
|
|
elemField = new org.apache.axis.description.ElementDesc();
|
|
elemField.setFieldName("length");
|
|
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "length"));
|
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
|
|
elemField.setNillable(false);
|
|
typeDesc.addFieldDesc(elemField);
|
|
elemField = new org.apache.axis.description.ElementDesc();
|
|
elemField.setFieldName("format");
|
|
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "format"));
|
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"));
|
|
elemField.setNillable(true);
|
|
typeDesc.addFieldDesc(elemField);
|
|
elemField = new org.apache.axis.description.ElementDesc();
|
|
elemField.setFieldName("url");
|
|
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/content/1.0", "url"));
|
|
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
elemField.setNillable(true);
|
|
typeDesc.addFieldDesc(elemField);
|
|
}
|
|
|
|
/**
|
|
* Return type metadata object
|
|
*/
|
|
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
return typeDesc;
|
|
}
|
|
|
|
/**
|
|
* Get Custom Serializer
|
|
*/
|
|
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
java.lang.String mechType,
|
|
java.lang.Class _javaType,
|
|
javax.xml.namespace.QName _xmlType) {
|
|
return
|
|
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
_javaType, _xmlType, typeDesc);
|
|
}
|
|
|
|
/**
|
|
* Get Custom Deserializer
|
|
*/
|
|
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
java.lang.String mechType,
|
|
java.lang.Class _javaType,
|
|
javax.xml.namespace.QName _xmlType) {
|
|
return
|
|
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
_javaType, _xmlType, typeDesc);
|
|
}
|
|
|
|
}
|