/**
 * ProfileInfo.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.genesyslab.gis.services.statistic.types;

public class ProfileInfo  implements java.io.Serializable {
    private com.genesyslab.gis.services.statistic.types.Parameter[] filters;

    private com.genesyslab.gis.services.statistic.types.StatisticalProfileType profileType;

    private com.genesyslab.gis.services.statistic.types.StatisticTypeInfoType[] statisticInfos;

    private com.genesyslab.gis.services.statistic.types.TimeProfile[] timeProfiles;

    private com.genesyslab.gis.services.statistic.types.Parameter[] timeRanges;

    public ProfileInfo() {
    }

    public ProfileInfo(
           com.genesyslab.gis.services.statistic.types.Parameter[] filters,
           com.genesyslab.gis.services.statistic.types.StatisticalProfileType profileType,
           com.genesyslab.gis.services.statistic.types.StatisticTypeInfoType[] statisticInfos,
           com.genesyslab.gis.services.statistic.types.TimeProfile[] timeProfiles,
           com.genesyslab.gis.services.statistic.types.Parameter[] timeRanges) {
           this.filters = filters;
           this.profileType = profileType;
           this.statisticInfos = statisticInfos;
           this.timeProfiles = timeProfiles;
           this.timeRanges = timeRanges;
    }


    /**
     * Gets the filters value for this ProfileInfo.
     * 
     * @return filters
     */
    public com.genesyslab.gis.services.statistic.types.Parameter[] getFilters() {
        return filters;
    }


    /**
     * Sets the filters value for this ProfileInfo.
     * 
     * @param filters
     */
    public void setFilters(com.genesyslab.gis.services.statistic.types.Parameter[] filters) {
        this.filters = filters;
    }


    /**
     * Gets the profileType value for this ProfileInfo.
     * 
     * @return profileType
     */
    public com.genesyslab.gis.services.statistic.types.StatisticalProfileType getProfileType() {
        return profileType;
    }


    /**
     * Sets the profileType value for this ProfileInfo.
     * 
     * @param profileType
     */
    public void setProfileType(com.genesyslab.gis.services.statistic.types.StatisticalProfileType profileType) {
        this.profileType = profileType;
    }


    /**
     * Gets the statisticInfos value for this ProfileInfo.
     * 
     * @return statisticInfos
     */
    public com.genesyslab.gis.services.statistic.types.StatisticTypeInfoType[] getStatisticInfos() {
        return statisticInfos;
    }


    /**
     * Sets the statisticInfos value for this ProfileInfo.
     * 
     * @param statisticInfos
     */
    public void setStatisticInfos(com.genesyslab.gis.services.statistic.types.StatisticTypeInfoType[] statisticInfos) {
        this.statisticInfos = statisticInfos;
    }


    /**
     * Gets the timeProfiles value for this ProfileInfo.
     * 
     * @return timeProfiles
     */
    public com.genesyslab.gis.services.statistic.types.TimeProfile[] getTimeProfiles() {
        return timeProfiles;
    }


    /**
     * Sets the timeProfiles value for this ProfileInfo.
     * 
     * @param timeProfiles
     */
    public void setTimeProfiles(com.genesyslab.gis.services.statistic.types.TimeProfile[] timeProfiles) {
        this.timeProfiles = timeProfiles;
    }


    /**
     * Gets the timeRanges value for this ProfileInfo.
     * 
     * @return timeRanges
     */
    public com.genesyslab.gis.services.statistic.types.Parameter[] getTimeRanges() {
        return timeRanges;
    }


    /**
     * Sets the timeRanges value for this ProfileInfo.
     * 
     * @param timeRanges
     */
    public void setTimeRanges(com.genesyslab.gis.services.statistic.types.Parameter[] timeRanges) {
        this.timeRanges = timeRanges;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ProfileInfo)) return false;
        ProfileInfo other = (ProfileInfo) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.filters==null && other.getFilters()==null) || 
             (this.filters!=null &&
              java.util.Arrays.equals(this.filters, other.getFilters()))) &&
            ((this.profileType==null && other.getProfileType()==null) || 
             (this.profileType!=null &&
              this.profileType.equals(other.getProfileType()))) &&
            ((this.statisticInfos==null && other.getStatisticInfos()==null) || 
             (this.statisticInfos!=null &&
              java.util.Arrays.equals(this.statisticInfos, other.getStatisticInfos()))) &&
            ((this.timeProfiles==null && other.getTimeProfiles()==null) || 
             (this.timeProfiles!=null &&
              java.util.Arrays.equals(this.timeProfiles, other.getTimeProfiles()))) &&
            ((this.timeRanges==null && other.getTimeRanges()==null) || 
             (this.timeRanges!=null &&
              java.util.Arrays.equals(this.timeRanges, other.getTimeRanges())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getFilters() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getFilters());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getFilters(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getProfileType() != null) {
            _hashCode += getProfileType().hashCode();
        }
        if (getStatisticInfos() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getStatisticInfos());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getStatisticInfos(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getTimeProfiles() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getTimeProfiles());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getTimeProfiles(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getTimeRanges() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getTimeRanges());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getTimeRanges(), 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(ProfileInfo.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "profileInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("filters");
        elemField.setXmlName(new javax.xml.namespace.QName("", "filters"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "parameter"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("profileType");
        elemField.setXmlName(new javax.xml.namespace.QName("", "profileType"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "statisticalProfileType"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("statisticInfos");
        elemField.setXmlName(new javax.xml.namespace.QName("", "statisticInfos"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "statisticTypeInfoType"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("timeProfiles");
        elemField.setXmlName(new javax.xml.namespace.QName("", "timeProfiles"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "timeProfile"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("timeRanges");
        elemField.setXmlName(new javax.xml.namespace.QName("", "timeRanges"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2002/03", "parameter"));
        elemField.setNillable(true);
        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);
    }

}
