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

package weaver.interfaces.htsc.cus.webservices;

public class UploadfileEntity  implements java.io.Serializable {
    private String userCode;

    private String billID;

    private String fileType;

    private FileInfoEntity[] fileInfoEntityArr;

    public UploadfileEntity() {
    }

    public UploadfileEntity(
           String userCode,
           String billID,
           String fileType,
           FileInfoEntity[] fileInfoEntityArr) {
           this.userCode = userCode;
           this.billID = billID;
           this.fileType = fileType;
           this.fileInfoEntityArr = fileInfoEntityArr;
    }


    /**
     * Gets the userCode value for this UploadfileEntity.
     * 
     * @return userCode
     */
    public String getUserCode() {
        return userCode;
    }


    /**
     * Sets the userCode value for this UploadfileEntity.
     * 
     * @param userCode
     */
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }


    /**
     * Gets the billID value for this UploadfileEntity.
     * 
     * @return billID
     */
    public String getBillID() {
        return billID;
    }


    /**
     * Sets the billID value for this UploadfileEntity.
     * 
     * @param billID
     */
    public void setBillID(String billID) {
        this.billID = billID;
    }


    /**
     * Gets the fileType value for this UploadfileEntity.
     * 
     * @return fileType
     */
    public String getFileType() {
        return fileType;
    }


    /**
     * Sets the fileType value for this UploadfileEntity.
     * 
     * @param fileType
     */
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }


    /**
     * Gets the fileInfoEntityArr value for this UploadfileEntity.
     * 
     * @return fileInfoEntityArr
     */
    public FileInfoEntity[] getFileInfoEntityArr() {
        return fileInfoEntityArr;
    }


    /**
     * Sets the fileInfoEntityArr value for this UploadfileEntity.
     * 
     * @param fileInfoEntityArr
     */
    public void setFileInfoEntityArr(FileInfoEntity[] fileInfoEntityArr) {
        this.fileInfoEntityArr = fileInfoEntityArr;
    }

    private Object __equalsCalc = null;
    public synchronized boolean equals(Object obj) {
        if (!(obj instanceof UploadfileEntity)) return false;
        UploadfileEntity other = (UploadfileEntity) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.userCode==null && other.getUserCode()==null) || 
             (this.userCode!=null &&
              this.userCode.equals(other.getUserCode()))) &&
            ((this.billID==null && other.getBillID()==null) || 
             (this.billID!=null &&
              this.billID.equals(other.getBillID()))) &&
            ((this.fileType==null && other.getFileType()==null) || 
             (this.fileType!=null &&
              this.fileType.equals(other.getFileType()))) &&
            ((this.fileInfoEntityArr==null && other.getFileInfoEntityArr()==null) || 
             (this.fileInfoEntityArr!=null &&
              java.util.Arrays.equals(this.fileInfoEntityArr, other.getFileInfoEntityArr())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getUserCode() != null) {
            _hashCode += getUserCode().hashCode();
        }
        if (getBillID() != null) {
            _hashCode += getBillID().hashCode();
        }
        if (getFileType() != null) {
            _hashCode += getFileType().hashCode();
        }
        if (getFileInfoEntityArr() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getFileInfoEntityArr());
                 i++) {
                Object obj = java.lang.reflect.Array.get(getFileInfoEntityArr(), 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(UploadfileEntity.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "UploadfileEntity"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("userCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "UserCode"));
        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("billID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "BillID"));
        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("fileType");
        elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "FileType"));
        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("fileInfoEntityArr");
        elemField.setXmlName(new javax.xml.namespace.QName("http://tempuri.org/", "FileInfoEntityArr"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://tempuri.org/", "FileInfoEntity"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setItemQName(new javax.xml.namespace.QName("http://tempuri.org/", "FileInfoEntity"));
        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(
           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);
    }

}
