/**
 * LineaType.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.rms.tfc.types;

public class LineaType  implements java.io.Serializable {
    private java.lang.String idProducto;

    private java.lang.String cantidadPedida;

    private java.lang.String idLineaExterno;

    public LineaType() {
    }

    public LineaType(
           java.lang.String idProducto,
           java.lang.String cantidadPedida,
           java.lang.String idLineaExterno) {
           this.idProducto = idProducto;
           this.cantidadPedida = cantidadPedida;
           this.idLineaExterno = idLineaExterno;
    }


    /**
     * Gets the idProducto value for this LineaType.
     * 
     * @return idProducto
     */
    public java.lang.String getIdProducto() {
        return idProducto;
    }


    /**
     * Sets the idProducto value for this LineaType.
     * 
     * @param idProducto
     */
    public void setIdProducto(java.lang.String idProducto) {
        this.idProducto = idProducto;
    }


    /**
     * Gets the cantidadPedida value for this LineaType.
     * 
     * @return cantidadPedida
     */
    public java.lang.String getCantidadPedida() {
        return cantidadPedida;
    }


    /**
     * Sets the cantidadPedida value for this LineaType.
     * 
     * @param cantidadPedida
     */
    public void setCantidadPedida(java.lang.String cantidadPedida) {
        this.cantidadPedida = cantidadPedida;
    }


    /**
     * Gets the idLineaExterno value for this LineaType.
     * 
     * @return idLineaExterno
     */
    public java.lang.String getIdLineaExterno() {
        return idLineaExterno;
    }


    /**
     * Sets the idLineaExterno value for this LineaType.
     * 
     * @param idLineaExterno
     */
    public void setIdLineaExterno(java.lang.String idLineaExterno) {
        this.idLineaExterno = idLineaExterno;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof LineaType)) return false;
        LineaType other = (LineaType) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.idProducto==null && other.getIdProducto()==null) || 
             (this.idProducto!=null &&
              this.idProducto.equals(other.getIdProducto()))) &&
            ((this.cantidadPedida==null && other.getCantidadPedida()==null) || 
             (this.cantidadPedida!=null &&
              this.cantidadPedida.equals(other.getCantidadPedida()))) &&
            ((this.idLineaExterno==null && other.getIdLineaExterno()==null) || 
             (this.idLineaExterno!=null &&
              this.idLineaExterno.equals(other.getIdLineaExterno())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getIdProducto() != null) {
            _hashCode += getIdProducto().hashCode();
        }
        if (getCantidadPedida() != null) {
            _hashCode += getCantidadPedida().hashCode();
        }
        if (getIdLineaExterno() != null) {
            _hashCode += getIdLineaExterno().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://service.tfc.almacen", "LineaType"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("idProducto");
        elemField.setXmlName(new javax.xml.namespace.QName("", "idProducto"));
        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("cantidadPedida");
        elemField.setXmlName(new javax.xml.namespace.QName("", "cantidadPedida"));
        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("idLineaExterno");
        elemField.setXmlName(new javax.xml.namespace.QName("", "idLineaExterno"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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);
    }
}