/**
 * PronumberResult.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.adsionline.ADSIShippingWS;

public class PronumberResult  implements java.io.Serializable {
    private java.lang.String pronumber;

    private long baseNumber;

    private java.lang.String prefix;

    private long maxSeq;

    private long minSeq;

    private boolean atThreshold;

    private boolean startedNewBlock;

    private java.lang.String algorithmID;

    public PronumberResult() {
    }

    public PronumberResult(
           java.lang.String pronumber,
           long baseNumber,
           java.lang.String prefix,
           long maxSeq,
           long minSeq,
           boolean atThreshold,
           boolean startedNewBlock,
           java.lang.String algorithmID) {
           this.pronumber = pronumber;
           this.baseNumber = baseNumber;
           this.prefix = prefix;
           this.maxSeq = maxSeq;
           this.minSeq = minSeq;
           this.atThreshold = atThreshold;
           this.startedNewBlock = startedNewBlock;
           this.algorithmID = algorithmID;
    }


    /**
     * Gets the pronumber value for this PronumberResult.
     * 
     * @return pronumber
     */
    public java.lang.String getPronumber() {
        return pronumber;
    }


    /**
     * Sets the pronumber value for this PronumberResult.
     * 
     * @param pronumber
     */
    public void setPronumber(java.lang.String pronumber) {
        this.pronumber = pronumber;
    }


    /**
     * Gets the baseNumber value for this PronumberResult.
     * 
     * @return baseNumber
     */
    public long getBaseNumber() {
        return baseNumber;
    }


    /**
     * Sets the baseNumber value for this PronumberResult.
     * 
     * @param baseNumber
     */
    public void setBaseNumber(long baseNumber) {
        this.baseNumber = baseNumber;
    }


    /**
     * Gets the prefix value for this PronumberResult.
     * 
     * @return prefix
     */
    public java.lang.String getPrefix() {
        return prefix;
    }


    /**
     * Sets the prefix value for this PronumberResult.
     * 
     * @param prefix
     */
    public void setPrefix(java.lang.String prefix) {
        this.prefix = prefix;
    }


    /**
     * Gets the maxSeq value for this PronumberResult.
     * 
     * @return maxSeq
     */
    public long getMaxSeq() {
        return maxSeq;
    }


    /**
     * Sets the maxSeq value for this PronumberResult.
     * 
     * @param maxSeq
     */
    public void setMaxSeq(long maxSeq) {
        this.maxSeq = maxSeq;
    }


    /**
     * Gets the minSeq value for this PronumberResult.
     * 
     * @return minSeq
     */
    public long getMinSeq() {
        return minSeq;
    }


    /**
     * Sets the minSeq value for this PronumberResult.
     * 
     * @param minSeq
     */
    public void setMinSeq(long minSeq) {
        this.minSeq = minSeq;
    }


    /**
     * Gets the atThreshold value for this PronumberResult.
     * 
     * @return atThreshold
     */
    public boolean isAtThreshold() {
        return atThreshold;
    }


    /**
     * Sets the atThreshold value for this PronumberResult.
     * 
     * @param atThreshold
     */
    public void setAtThreshold(boolean atThreshold) {
        this.atThreshold = atThreshold;
    }


    /**
     * Gets the startedNewBlock value for this PronumberResult.
     * 
     * @return startedNewBlock
     */
    public boolean isStartedNewBlock() {
        return startedNewBlock;
    }


    /**
     * Sets the startedNewBlock value for this PronumberResult.
     * 
     * @param startedNewBlock
     */
    public void setStartedNewBlock(boolean startedNewBlock) {
        this.startedNewBlock = startedNewBlock;
    }


    /**
     * Gets the algorithmID value for this PronumberResult.
     * 
     * @return algorithmID
     */
    public java.lang.String getAlgorithmID() {
        return algorithmID;
    }


    /**
     * Sets the algorithmID value for this PronumberResult.
     * 
     * @param algorithmID
     */
    public void setAlgorithmID(java.lang.String algorithmID) {
        this.algorithmID = algorithmID;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof PronumberResult)) return false;
        PronumberResult other = (PronumberResult) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.pronumber==null && other.getPronumber()==null) || 
             (this.pronumber!=null &&
              this.pronumber.equals(other.getPronumber()))) &&
            this.baseNumber == other.getBaseNumber() &&
            ((this.prefix==null && other.getPrefix()==null) || 
             (this.prefix!=null &&
              this.prefix.equals(other.getPrefix()))) &&
            this.maxSeq == other.getMaxSeq() &&
            this.minSeq == other.getMinSeq() &&
            this.atThreshold == other.isAtThreshold() &&
            this.startedNewBlock == other.isStartedNewBlock() &&
            ((this.algorithmID==null && other.getAlgorithmID()==null) || 
             (this.algorithmID!=null &&
              this.algorithmID.equals(other.getAlgorithmID())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getPronumber() != null) {
            _hashCode += getPronumber().hashCode();
        }
        _hashCode += new Long(getBaseNumber()).hashCode();
        if (getPrefix() != null) {
            _hashCode += getPrefix().hashCode();
        }
        _hashCode += new Long(getMaxSeq()).hashCode();
        _hashCode += new Long(getMinSeq()).hashCode();
        _hashCode += (isAtThreshold() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isStartedNewBlock() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        if (getAlgorithmID() != null) {
            _hashCode += getAlgorithmID().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "PronumberResult"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("pronumber");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "Pronumber"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("baseNumber");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "BaseNumber"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("prefix");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "Prefix"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("maxSeq");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "MaxSeq"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("minSeq");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "MinSeq"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("atThreshold");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "AtThreshold"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("startedNewBlock");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "StartedNewBlock"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("algorithmID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "AlgorithmID"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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);
    }

}
