/**
* TImageData.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package de.epages.ws.catalog6.model;
/**
* the content and the filename of a product image
*/
public class TImageData implements java.io.Serializable {
/* the filename without path */
private java.lang.String fileName;
/* catalog image type (one of 'Small', 'Medium', '1' or '2') */
private java.lang.String type;
/* the binary filecontent */
private byte[] content;
public TImageData() {
}
public TImageData(
java.lang.String fileName,
java.lang.String type,
byte[] content) {
this.fileName = fileName;
this.type = type;
this.content = content;
}
/**
* Gets the fileName value for this TImageData.
*
* @return fileName * the filename without path
*/
public java.lang.String getFileName() {
return fileName;
}
/**
* Sets the fileName value for this TImageData.
*
* @param fileName * the filename without path
*/
public void setFileName(java.lang.String fileName) {
this.fileName = fileName;
}
/**
* Gets the type value for this TImageData.
*
* @return type * catalog image type (one of 'Small', 'Medium', '1' or '2')
*/
public java.lang.String getType() {
return type;
}
/**
* Sets the type value for this TImageData.
*
* @param type * catalog image type (one of 'Small', 'Medium', '1' or '2')
*/
public void setType(java.lang.String type) {
this.type = type;
}
/**
* Gets the content value for this TImageData.
*
* @return content * the binary filecontent
*/
public byte[] getContent() {
return content;
}
/**
* Sets the content value for this TImageData.
*
* @param content * the binary filecontent
*/
public void setContent(byte[] content) {
this.content = content;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof TImageData)) return false;
TImageData other = (TImageData) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.fileName==null && other.getFileName()==null) ||
(this.fileName!=null &&
this.fileName.equals(other.getFileName()))) &&
((this.type==null && other.getType()==null) ||
(this.type!=null &&
this.type.equals(other.getType()))) &&
((this.content==null && other.getContent()==null) ||
(this.content!=null &&
java.util.Arrays.equals(this.content, other.getContent())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getFileName() != null) {
_hashCode += getFileName().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
if (getContent() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getContent());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getContent(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(TImageData.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/CatalogTypes/2011/03", "TImageData"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("fileName");
elemField.setXmlName(new javax.xml.namespace.QName("", "FileName"));
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("type");
elemField.setXmlName(new javax.xml.namespace.QName("", "Type"));
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("content");
elemField.setXmlName(new javax.xml.namespace.QName("", "Content"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
elemField.setNillable(false);
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);
}
}