/**
* TBaseLineItem.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.order10.model;
/**
* return object of a base line item.
*/
public class TBaseLineItem implements java.io.Serializable {
/* the class of the line item */
private java.lang.String _class;
/* name of the line item */
private java.lang.String name;
/* sku of the line item (couponcode short) */
private java.lang.String SKU;
/* the tax class of the line item (object path to tax class) */
private java.lang.String taxClass;
/* quantity of the line item */
private float quantity;
/* the baseprice of the line item */
private float basePrice;
/* the total price of the line item */
private float lineItemPrice;
/* possible discount of the line item */
private float discount;
/* the tax rate of the line item */
private float taxRate;
/* the tax amount of the line item */
private float taxAmount;
public TBaseLineItem() {
}
public TBaseLineItem(
java.lang.String _class,
java.lang.String name,
java.lang.String SKU,
java.lang.String taxClass,
float quantity,
float basePrice,
float lineItemPrice,
float discount,
float taxRate,
float taxAmount) {
this._class = _class;
this.name = name;
this.SKU = SKU;
this.taxClass = taxClass;
this.quantity = quantity;
this.basePrice = basePrice;
this.lineItemPrice = lineItemPrice;
this.discount = discount;
this.taxRate = taxRate;
this.taxAmount = taxAmount;
}
/**
* Gets the _class value for this TBaseLineItem.
*
* @return _class * the class of the line item
*/
public java.lang.String get_class() {
return _class;
}
/**
* Sets the _class value for this TBaseLineItem.
*
* @param _class * the class of the line item
*/
public void set_class(java.lang.String _class) {
this._class = _class;
}
/**
* Gets the name value for this TBaseLineItem.
*
* @return name * name of the line item
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this TBaseLineItem.
*
* @param name * name of the line item
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the SKU value for this TBaseLineItem.
*
* @return SKU * sku of the line item (couponcode short)
*/
public java.lang.String getSKU() {
return SKU;
}
/**
* Sets the SKU value for this TBaseLineItem.
*
* @param SKU * sku of the line item (couponcode short)
*/
public void setSKU(java.lang.String SKU) {
this.SKU = SKU;
}
/**
* Gets the taxClass value for this TBaseLineItem.
*
* @return taxClass * the tax class of the line item (object path to tax class)
*/
public java.lang.String getTaxClass() {
return taxClass;
}
/**
* Sets the taxClass value for this TBaseLineItem.
*
* @param taxClass * the tax class of the line item (object path to tax class)
*/
public void setTaxClass(java.lang.String taxClass) {
this.taxClass = taxClass;
}
/**
* Gets the quantity value for this TBaseLineItem.
*
* @return quantity * quantity of the line item
*/
public float getQuantity() {
return quantity;
}
/**
* Sets the quantity value for this TBaseLineItem.
*
* @param quantity * quantity of the line item
*/
public void setQuantity(float quantity) {
this.quantity = quantity;
}
/**
* Gets the basePrice value for this TBaseLineItem.
*
* @return basePrice * the baseprice of the line item
*/
public float getBasePrice() {
return basePrice;
}
/**
* Sets the basePrice value for this TBaseLineItem.
*
* @param basePrice * the baseprice of the line item
*/
public void setBasePrice(float basePrice) {
this.basePrice = basePrice;
}
/**
* Gets the lineItemPrice value for this TBaseLineItem.
*
* @return lineItemPrice * the total price of the line item
*/
public float getLineItemPrice() {
return lineItemPrice;
}
/**
* Sets the lineItemPrice value for this TBaseLineItem.
*
* @param lineItemPrice * the total price of the line item
*/
public void setLineItemPrice(float lineItemPrice) {
this.lineItemPrice = lineItemPrice;
}
/**
* Gets the discount value for this TBaseLineItem.
*
* @return discount * possible discount of the line item
*/
public float getDiscount() {
return discount;
}
/**
* Sets the discount value for this TBaseLineItem.
*
* @param discount * possible discount of the line item
*/
public void setDiscount(float discount) {
this.discount = discount;
}
/**
* Gets the taxRate value for this TBaseLineItem.
*
* @return taxRate * the tax rate of the line item
*/
public float getTaxRate() {
return taxRate;
}
/**
* Sets the taxRate value for this TBaseLineItem.
*
* @param taxRate * the tax rate of the line item
*/
public void setTaxRate(float taxRate) {
this.taxRate = taxRate;
}
/**
* Gets the taxAmount value for this TBaseLineItem.
*
* @return taxAmount * the tax amount of the line item
*/
public float getTaxAmount() {
return taxAmount;
}
/**
* Sets the taxAmount value for this TBaseLineItem.
*
* @param taxAmount * the tax amount of the line item
*/
public void setTaxAmount(float taxAmount) {
this.taxAmount = taxAmount;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof TBaseLineItem)) return false;
TBaseLineItem other = (TBaseLineItem) 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.taxClass==null && other.getTaxClass()==null) ||
(this.taxClass!=null &&
this.taxClass.equals(other.getTaxClass()))) &&
this.quantity == other.getQuantity() &&
this.basePrice == other.getBasePrice() &&
this.lineItemPrice == other.getLineItemPrice() &&
this.discount == other.getDiscount() &&
this.taxRate == other.getTaxRate() &&
this.taxAmount == other.getTaxAmount();
__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 (getTaxClass() != null) {
_hashCode += getTaxClass().hashCode();
}
_hashCode += new Float(getQuantity()).hashCode();
_hashCode += new Float(getBasePrice()).hashCode();
_hashCode += new Float(getLineItemPrice()).hashCode();
_hashCode += new Float(getDiscount()).hashCode();
_hashCode += new Float(getTaxRate()).hashCode();
_hashCode += new Float(getTaxAmount()).hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(TBaseLineItem.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/OrderTypes/2011/11", "TBaseLineItem"));
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("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("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("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("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("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);
}
/**
* 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);
}
}