/** * TTaxLineItem.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.order7.model; /** * return object of an tax line item. * contains information about a single tax class of this order. */ public class TTaxLineItem implements java.io.Serializable { /* the class of the tax line item */ private java.lang.String _class; /* name of the tax line item */ private java.lang.String name; /* sku of the tax line item */ private java.lang.String SKU; /* the tax area of the tax line item (object path to tax area) */ private java.lang.String taxArea; /* the tax matrix of the tax line item (object path to tax matrix) */ private java.lang.String taxMatrix; /* the tax class of the tax line item (object path to tax class) */ private java.lang.String taxClass; /* the total price of the tax line item */ private float lineItemPrice; /* the baseprice of the tax line item */ private float basePrice; /* quantity of the tax line item */ private float quantity; /* possible discount of the tax line item */ private float discount; /* the tax rate of the tax line item */ private float taxRate; /* the tax amount of the tax line item */ private float taxAmount; /* list of requested attributes (see epagestypes:ListOfAttributes) */ private de.epages.ws.common.model.TAttribute[] attributes; public TTaxLineItem() { } public TTaxLineItem( java.lang.String _class, java.lang.String name, java.lang.String SKU, java.lang.String taxArea, java.lang.String taxMatrix, java.lang.String taxClass, float lineItemPrice, float basePrice, float quantity, float discount, float taxRate, float taxAmount, de.epages.ws.common.model.TAttribute[] attributes) { this._class = _class; this.name = name; this.SKU = SKU; this.taxArea = taxArea; this.taxMatrix = taxMatrix; this.taxClass = taxClass; this.lineItemPrice = lineItemPrice; this.basePrice = basePrice; this.quantity = quantity; this.discount = discount; this.taxRate = taxRate; this.taxAmount = taxAmount; this.attributes = attributes; } /** * Gets the _class value for this TTaxLineItem. * * @return _class * the class of the tax line item */ public java.lang.String get_class() { return _class; } /** * Sets the _class value for this TTaxLineItem. * * @param _class * the class of the tax line item */ public void set_class(java.lang.String _class) { this._class = _class; } /** * Gets the name value for this TTaxLineItem. * * @return name * name of the tax line item */ public java.lang.String getName() { return name; } /** * Sets the name value for this TTaxLineItem. * * @param name * name of the tax line item */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the SKU value for this TTaxLineItem. * * @return SKU * sku of the tax line item */ public java.lang.String getSKU() { return SKU; } /** * Sets the SKU value for this TTaxLineItem. * * @param SKU * sku of the tax line item */ public void setSKU(java.lang.String SKU) { this.SKU = SKU; } /** * Gets the taxArea value for this TTaxLineItem. * * @return taxArea * the tax area of the tax line item (object path to tax area) */ public java.lang.String getTaxArea() { return taxArea; } /** * Sets the taxArea value for this TTaxLineItem. * * @param taxArea * the tax area of the tax line item (object path to tax area) */ public void setTaxArea(java.lang.String taxArea) { this.taxArea = taxArea; } /** * Gets the taxMatrix value for this TTaxLineItem. * * @return taxMatrix * the tax matrix of the tax line item (object path to tax matrix) */ public java.lang.String getTaxMatrix() { return taxMatrix; } /** * Sets the taxMatrix value for this TTaxLineItem. * * @param taxMatrix * the tax matrix of the tax line item (object path to tax matrix) */ public void setTaxMatrix(java.lang.String taxMatrix) { this.taxMatrix = taxMatrix; } /** * Gets the taxClass value for this TTaxLineItem. * * @return taxClass * the tax class of the tax line item (object path to tax class) */ public java.lang.String getTaxClass() { return taxClass; } /** * Sets the taxClass value for this TTaxLineItem. * * @param taxClass * the tax class of the tax line item (object path to tax class) */ public void setTaxClass(java.lang.String taxClass) { this.taxClass = taxClass; } /** * Gets the lineItemPrice value for this TTaxLineItem. * * @return lineItemPrice * the total price of the tax line item */ public float getLineItemPrice() { return lineItemPrice; } /** * Sets the lineItemPrice value for this TTaxLineItem. * * @param lineItemPrice * the total price of the tax line item */ public void setLineItemPrice(float lineItemPrice) { this.lineItemPrice = lineItemPrice; } /** * Gets the basePrice value for this TTaxLineItem. * * @return basePrice * the baseprice of the tax line item */ public float getBasePrice() { return basePrice; } /** * Sets the basePrice value for this TTaxLineItem. * * @param basePrice * the baseprice of the tax line item */ public void setBasePrice(float basePrice) { this.basePrice = basePrice; } /** * Gets the quantity value for this TTaxLineItem. * * @return quantity * quantity of the tax line item */ public float getQuantity() { return quantity; } /** * Sets the quantity value for this TTaxLineItem. * * @param quantity * quantity of the tax line item */ public void setQuantity(float quantity) { this.quantity = quantity; } /** * Gets the discount value for this TTaxLineItem. * * @return discount * possible discount of the tax line item */ public float getDiscount() { return discount; } /** * Sets the discount value for this TTaxLineItem. * * @param discount * possible discount of the tax line item */ public void setDiscount(float discount) { this.discount = discount; } /** * Gets the taxRate value for this TTaxLineItem. * * @return taxRate * the tax rate of the tax line item */ public float getTaxRate() { return taxRate; } /** * Sets the taxRate value for this TTaxLineItem. * * @param taxRate * the tax rate of the tax line item */ public void setTaxRate(float taxRate) { this.taxRate = taxRate; } /** * Gets the taxAmount value for this TTaxLineItem. * * @return taxAmount * the tax amount of the tax line item */ public float getTaxAmount() { return taxAmount; } /** * Sets the taxAmount value for this TTaxLineItem. * * @param taxAmount * the tax amount of the tax line item */ public void setTaxAmount(float taxAmount) { this.taxAmount = taxAmount; } /** * Gets the attributes value for this TTaxLineItem. * * @return attributes * list of requested attributes (see epagestypes:ListOfAttributes) */ public de.epages.ws.common.model.TAttribute[] getAttributes() { return attributes; } /** * Sets the attributes value for this TTaxLineItem. * * @param attributes * list of requested attributes (see epagestypes:ListOfAttributes) */ public void setAttributes(de.epages.ws.common.model.TAttribute[] attributes) { this.attributes = attributes; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TTaxLineItem)) return false; TTaxLineItem other = (TTaxLineItem) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this._class==null && other.get_class()==null) || (this._class!=null && this._class.equals(other.get_class()))) && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && ((this.SKU==null && other.getSKU()==null) || (this.SKU!=null && this.SKU.equals(other.getSKU()))) && ((this.taxArea==null && other.getTaxArea()==null) || (this.taxArea!=null && this.taxArea.equals(other.getTaxArea()))) && ((this.taxMatrix==null && other.getTaxMatrix()==null) || (this.taxMatrix!=null && this.taxMatrix.equals(other.getTaxMatrix()))) && ((this.taxClass==null && other.getTaxClass()==null) || (this.taxClass!=null && this.taxClass.equals(other.getTaxClass()))) && this.lineItemPrice == other.getLineItemPrice() && this.basePrice == other.getBasePrice() && this.quantity == other.getQuantity() && this.discount == other.getDiscount() && this.taxRate == other.getTaxRate() && this.taxAmount == other.getTaxAmount() && ((this.attributes==null && other.getAttributes()==null) || (this.attributes!=null && java.util.Arrays.equals(this.attributes, other.getAttributes()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (get_class() != null) { _hashCode += get_class().hashCode(); } if (getName() != null) { _hashCode += getName().hashCode(); } if (getSKU() != null) { _hashCode += getSKU().hashCode(); } if (getTaxArea() != null) { _hashCode += getTaxArea().hashCode(); } if (getTaxMatrix() != null) { _hashCode += getTaxMatrix().hashCode(); } if (getTaxClass() != null) { _hashCode += getTaxClass().hashCode(); } _hashCode += new Float(getLineItemPrice()).hashCode(); _hashCode += new Float(getBasePrice()).hashCode(); _hashCode += new Float(getQuantity()).hashCode(); _hashCode += new Float(getDiscount()).hashCode(); _hashCode += new Float(getTaxRate()).hashCode(); _hashCode += new Float(getTaxAmount()).hashCode(); if (getAttributes() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getAttributes()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getAttributes(), 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(TTaxLineItem.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/OrderTypes/2010/10", "TTaxLineItem")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("_class"); elemField.setXmlName(new javax.xml.namespace.QName("", "Class")); 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("name"); elemField.setXmlName(new javax.xml.namespace.QName("", "Name")); 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("SKU"); elemField.setXmlName(new javax.xml.namespace.QName("", "SKU")); 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("taxArea"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxArea")); 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("taxMatrix"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxMatrix")); 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("taxClass"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxClass")); 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("lineItemPrice"); elemField.setXmlName(new javax.xml.namespace.QName("", "LineItemPrice")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("basePrice"); elemField.setXmlName(new javax.xml.namespace.QName("", "BasePrice")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("quantity"); elemField.setXmlName(new javax.xml.namespace.QName("", "Quantity")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("discount"); elemField.setXmlName(new javax.xml.namespace.QName("", "Discount")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("taxRate"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxRate")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("taxAmount"); elemField.setXmlName(new javax.xml.namespace.QName("", "TaxAmount")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("attributes"); elemField.setXmlName(new javax.xml.namespace.QName("", "Attributes")); elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/EpagesTypes/2005/01", "TAttribute")); 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); } }