/** * Type_createProductAttribute_Out.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.producttype.stub; /** * output structure of a createProductAttribute call. * the Error element exists in case of error * the ProductAttributes element exists if no error occurs */ public class Type_createProductAttribute_Out implements java.io.Serializable { /* a list of product attribute create results */ private de.epages.ws.producttype.model.TCreateProductAttribute_Return[] productAttributes; /* error object (see epagestypes:TError) */ private de.epages.ws.common.model.TError error; public Type_createProductAttribute_Out() { } public Type_createProductAttribute_Out( de.epages.ws.producttype.model.TCreateProductAttribute_Return[] productAttributes, de.epages.ws.common.model.TError error) { this.productAttributes = productAttributes; this.error = error; } /** * Gets the productAttributes value for this Type_createProductAttribute_Out. * * @return productAttributes * a list of product attribute create results */ public de.epages.ws.producttype.model.TCreateProductAttribute_Return[] getProductAttributes() { return productAttributes; } /** * Sets the productAttributes value for this Type_createProductAttribute_Out. * * @param productAttributes * a list of product attribute create results */ public void setProductAttributes(de.epages.ws.producttype.model.TCreateProductAttribute_Return[] productAttributes) { this.productAttributes = productAttributes; } /** * Gets the error value for this Type_createProductAttribute_Out. * * @return error * error object (see epagestypes:TError) */ public de.epages.ws.common.model.TError getError() { return error; } /** * Sets the error value for this Type_createProductAttribute_Out. * * @param error * error object (see epagestypes:TError) */ public void setError(de.epages.ws.common.model.TError error) { this.error = error; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Type_createProductAttribute_Out)) return false; Type_createProductAttribute_Out other = (Type_createProductAttribute_Out) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.productAttributes==null && other.getProductAttributes()==null) || (this.productAttributes!=null && java.util.Arrays.equals(this.productAttributes, other.getProductAttributes()))) && ((this.error==null && other.getError()==null) || (this.error!=null && this.error.equals(other.getError()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getProductAttributes() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getProductAttributes()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getProductAttributes(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getError() != null) { _hashCode += getError().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(Type_createProductAttribute_Out.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/ProductTypeService/2007/10", "type_createProductAttribute_Out")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("productAttributes"); elemField.setXmlName(new javax.xml.namespace.QName("", "ProductAttributes")); elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/ProductTypeTypes/2007/10", "TCreateProductAttribute_Return")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("error"); elemField.setXmlName(new javax.xml.namespace.QName("", "Error")); elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/EpagesTypes/2005/01", "TError")); elemField.setMinOccurs(0); 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); } }