/** * TPriceListValueDiscount.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.pricelistassignment.model; /** * a single pricelists with value discount information. */ public class TPriceListValueDiscount implements java.io.Serializable { /* the pricelist (a object path) */ private java.lang.String priceList; /* list of value discount for this product and this pricelist * (see pricelistassignmenttypes:TValueDiscount) */ private de.epages.ws.pricelistassignment.model.TValueDiscount[] valueDiscounts; public TPriceListValueDiscount() { } public TPriceListValueDiscount( java.lang.String priceList, de.epages.ws.pricelistassignment.model.TValueDiscount[] valueDiscounts) { this.priceList = priceList; this.valueDiscounts = valueDiscounts; } /** * Gets the priceList value for this TPriceListValueDiscount. * * @return priceList * the pricelist (a object path) */ public java.lang.String getPriceList() { return priceList; } /** * Sets the priceList value for this TPriceListValueDiscount. * * @param priceList * the pricelist (a object path) */ public void setPriceList(java.lang.String priceList) { this.priceList = priceList; } /** * Gets the valueDiscounts value for this TPriceListValueDiscount. * * @return valueDiscounts * list of value discount for this product and this pricelist * (see pricelistassignmenttypes:TValueDiscount) */ public de.epages.ws.pricelistassignment.model.TValueDiscount[] getValueDiscounts() { return valueDiscounts; } /** * Sets the valueDiscounts value for this TPriceListValueDiscount. * * @param valueDiscounts * list of value discount for this product and this pricelist * (see pricelistassignmenttypes:TValueDiscount) */ public void setValueDiscounts(de.epages.ws.pricelistassignment.model.TValueDiscount[] valueDiscounts) { this.valueDiscounts = valueDiscounts; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TPriceListValueDiscount)) return false; TPriceListValueDiscount other = (TPriceListValueDiscount) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.priceList==null && other.getPriceList()==null) || (this.priceList!=null && this.priceList.equals(other.getPriceList()))) && ((this.valueDiscounts==null && other.getValueDiscounts()==null) || (this.valueDiscounts!=null && java.util.Arrays.equals(this.valueDiscounts, other.getValueDiscounts()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getPriceList() != null) { _hashCode += getPriceList().hashCode(); } if (getValueDiscounts() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getValueDiscounts()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getValueDiscounts(), 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(TPriceListValueDiscount.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/PriceListAssignmentTypes/2005/01", "TPriceListValueDiscount")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("priceList"); elemField.setXmlName(new javax.xml.namespace.QName("", "PriceList")); 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("valueDiscounts"); elemField.setXmlName(new javax.xml.namespace.QName("", "ValueDiscounts")); elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/PriceListAssignmentTypes/2005/01", "TValueDiscount")); 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); } }