/**
 * Shiporder.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package localhost;

public class Shiporder  implements java.io.Serializable {
    private java.lang.String orderperson;
    private localhost.Shipto shipto;
    private localhost.Item item;
    private java.lang.String orderid;  // attribute

    public Shiporder() {
    }

    public java.lang.String getOrderperson() {
        return orderperson;
    }

    public void setOrderperson(java.lang.String orderperson) {
        this.orderperson = orderperson;
    }

    public localhost.Shipto getShipto() {
        return shipto;
    }

    public void setShipto(localhost.Shipto shipto) {
        this.shipto = shipto;
    }

    public localhost.Item getItem() {
        return item;
    }

    public void setItem(localhost.Item item) {
        this.item = item;
    }

    public java.lang.String getOrderid() {
        return orderid;
    }

    public void setOrderid(java.lang.String orderid) {
        this.orderid = orderid;
    }

    private Object __equalsCalc = null;
    public synchronized boolean equals(Object obj) {
        if (!(obj instanceof Shiporder)) return false;
        Shiporder other = (Shiporder) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((orderperson==null && other.getOrderperson()==null) || 
             (orderperson!=null &&
              orderperson.equals(other.getOrderperson()))) &&
            ((shipto==null && other.getShipto()==null) || 
             (shipto!=null &&
              shipto.equals(other.getShipto()))) &&
            ((item==null && other.getItem()==null) || 
             (item!=null &&
              item.equals(other.getItem()))) &&
            ((orderid==null && other.getOrderid()==null) || 
             (orderid!=null &&
              orderid.equals(other.getOrderid())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getOrderperson() != null) {
            _hashCode += getOrderperson().hashCode();
        }
        if (getShipto() != null) {
            _hashCode += getShipto().hashCode();
        }
        if (getItem() != null) {
            _hashCode += getItem().hashCode();
        }
        if (getOrderid() != null) {
            _hashCode += getOrderid().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Shiporder.class);

    static {
        org.apache.axis.description.FieldDesc field = new org.apache.axis.description.AttributeDesc();
        field.setFieldName("orderid");
        field.setXmlName(new javax.xml.namespace.QName("", "orderid"));
        typeDesc.addFieldDesc(field);
        field = new org.apache.axis.description.ElementDesc();
        field.setFieldName("orderperson");
        field.setXmlName(new javax.xml.namespace.QName("", "orderperson"));
        typeDesc.addFieldDesc(field);
        field = new org.apache.axis.description.ElementDesc();
        field.setFieldName("shipto");
        field.setXmlName(new javax.xml.namespace.QName("", "shipto"));
        typeDesc.addFieldDesc(field);
        field = new org.apache.axis.description.ElementDesc();
        field.setFieldName("item");
        field.setXmlName(new javax.xml.namespace.QName("", "item"));
        typeDesc.addFieldDesc(field);
    };

    /**
     * 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(
           String mechType, 
           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(
           String mechType, 
           Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
