/**
* TUpdate_Input.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.orderdocument7.model;
/**
* input arguments of a single update() order call.
* a set of optional order specific attributes that will be updated.
* the path element is mandatory.
* all others are optional.
*/
public class TUpdate_Input implements java.io.Serializable {
/* order document object path */
private java.lang.String path;
/* order document class (i.e. CreditNote) */
private java.lang.String _class;
/* document issued or not */
private java.lang.Boolean issued;
/* update order document (see ordertypes:TLineItemContainerIn) */
private de.epages.ws.orderdocument7.model.TLineItemContainerIn lineItemContainer;
private de.epages.ws.shop3.model.TAddressNamed billingAddress;
private de.epages.ws.shop3.model.TAddressNamed shippingAddress;
/* list of to update additional attributes (see epagestypes:ListOfAttributes) */
private de.epages.ws.common.model.TAttribute[] attributes;
public TUpdate_Input() {
}
public TUpdate_Input(
java.lang.String path,
java.lang.String _class,
java.lang.Boolean issued,
de.epages.ws.orderdocument7.model.TLineItemContainerIn lineItemContainer,
de.epages.ws.shop3.model.TAddressNamed billingAddress,
de.epages.ws.shop3.model.TAddressNamed shippingAddress,
de.epages.ws.common.model.TAttribute[] attributes) {
this.path = path;
this._class = _class;
this.issued = issued;
this.lineItemContainer = lineItemContainer;
this.billingAddress = billingAddress;
this.shippingAddress = shippingAddress;
this.attributes = attributes;
}
/**
* Gets the path value for this TUpdate_Input.
*
* @return path * order document object path
*/
public java.lang.String getPath() {
return path;
}
/**
* Sets the path value for this TUpdate_Input.
*
* @param path * order document object path
*/
public void setPath(java.lang.String path) {
this.path = path;
}
/**
* Gets the _class value for this TUpdate_Input.
*
* @return _class * order document class (i.e. CreditNote)
*/
public java.lang.String get_class() {
return _class;
}
/**
* Sets the _class value for this TUpdate_Input.
*
* @param _class * order document class (i.e. CreditNote)
*/
public void set_class(java.lang.String _class) {
this._class = _class;
}
/**
* Gets the issued value for this TUpdate_Input.
*
* @return issued * document issued or not
*/
public java.lang.Boolean getIssued() {
return issued;
}
/**
* Sets the issued value for this TUpdate_Input.
*
* @param issued * document issued or not
*/
public void setIssued(java.lang.Boolean issued) {
this.issued = issued;
}
/**
* Gets the lineItemContainer value for this TUpdate_Input.
*
* @return lineItemContainer * update order document (see ordertypes:TLineItemContainerIn)
*/
public de.epages.ws.orderdocument7.model.TLineItemContainerIn getLineItemContainer() {
return lineItemContainer;
}
/**
* Sets the lineItemContainer value for this TUpdate_Input.
*
* @param lineItemContainer * update order document (see ordertypes:TLineItemContainerIn)
*/
public void setLineItemContainer(de.epages.ws.orderdocument7.model.TLineItemContainerIn lineItemContainer) {
this.lineItemContainer = lineItemContainer;
}
/**
* Gets the billingAddress value for this TUpdate_Input.
*
* @return billingAddress
*/
public de.epages.ws.shop3.model.TAddressNamed getBillingAddress() {
return billingAddress;
}
/**
* Sets the billingAddress value for this TUpdate_Input.
*
* @param billingAddress
*/
public void setBillingAddress(de.epages.ws.shop3.model.TAddressNamed billingAddress) {
this.billingAddress = billingAddress;
}
/**
* Gets the shippingAddress value for this TUpdate_Input.
*
* @return shippingAddress
*/
public de.epages.ws.shop3.model.TAddressNamed getShippingAddress() {
return shippingAddress;
}
/**
* Sets the shippingAddress value for this TUpdate_Input.
*
* @param shippingAddress
*/
public void setShippingAddress(de.epages.ws.shop3.model.TAddressNamed shippingAddress) {
this.shippingAddress = shippingAddress;
}
/**
* Gets the attributes value for this TUpdate_Input.
*
* @return attributes * list of to update additional attributes (see epagestypes:ListOfAttributes)
*/
public de.epages.ws.common.model.TAttribute[] getAttributes() {
return attributes;
}
/**
* Sets the attributes value for this TUpdate_Input.
*
* @param attributes * list of to update additional 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 TUpdate_Input)) return false;
TUpdate_Input other = (TUpdate_Input) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.path==null && other.getPath()==null) ||
(this.path!=null &&
this.path.equals(other.getPath()))) &&
((this._class==null && other.get_class()==null) ||
(this._class!=null &&
this._class.equals(other.get_class()))) &&
((this.issued==null && other.getIssued()==null) ||
(this.issued!=null &&
this.issued.equals(other.getIssued()))) &&
((this.lineItemContainer==null && other.getLineItemContainer()==null) ||
(this.lineItemContainer!=null &&
this.lineItemContainer.equals(other.getLineItemContainer()))) &&
((this.billingAddress==null && other.getBillingAddress()==null) ||
(this.billingAddress!=null &&
this.billingAddress.equals(other.getBillingAddress()))) &&
((this.shippingAddress==null && other.getShippingAddress()==null) ||
(this.shippingAddress!=null &&
this.shippingAddress.equals(other.getShippingAddress()))) &&
((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 (getPath() != null) {
_hashCode += getPath().hashCode();
}
if (get_class() != null) {
_hashCode += get_class().hashCode();
}
if (getIssued() != null) {
_hashCode += getIssued().hashCode();
}
if (getLineItemContainer() != null) {
_hashCode += getLineItemContainer().hashCode();
}
if (getBillingAddress() != null) {
_hashCode += getBillingAddress().hashCode();
}
if (getShippingAddress() != null) {
_hashCode += getShippingAddress().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(TUpdate_Input.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/OrderDocumentTypes/2011/08", "TUpdate_Input"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("path");
elemField.setXmlName(new javax.xml.namespace.QName("", "Path"));
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("_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("issued");
elemField.setXmlName(new javax.xml.namespace.QName("", "Issued"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("lineItemContainer");
elemField.setXmlName(new javax.xml.namespace.QName("", "LineItemContainer"));
elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/OrderDocumentTypes/2011/08", "TLineItemContainerIn"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("billingAddress");
elemField.setXmlName(new javax.xml.namespace.QName("", "BillingAddress"));
elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/ShopTypes/2011/01", "TAddressNamed"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("shippingAddress");
elemField.setXmlName(new javax.xml.namespace.QName("", "ShippingAddress"));
elemField.setXmlType(new javax.xml.namespace.QName("urn://epages.de/WebService/ShopTypes/2011/01", "TAddressNamed"));
elemField.setMinOccurs(0);
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);
}
}