/**
 * G_Info.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
 */

package org.eclipse.birt.report.soapengine.api;


/**
 * information of an ERNI group
 */
public class G_Info  implements java.io.Serializable {
    private int level;
    private java.lang.String groupName;
    /** The number of rows in group header */
    private int h_Count;
    /** The number of rows in group footer */
    private int f_Count;
    /** The index of group header row */
    private int HR_Index;

    public G_Info() {
    }

    public G_Info(
           int level,
           java.lang.String groupName,
           int h_Count,
           int f_Count,
           int HR_Index) {
           this.level = level;
           this.groupName = groupName;
           this.h_Count = h_Count;
           this.f_Count = f_Count;
           this.HR_Index = HR_Index;
    }


    /**
     * Gets the level value for this G_Info.
     * 
     * @return level
     */
    public int getLevel() {
        return level;
    }


    /**
     * Sets the level value for this G_Info.
     * 
     * @param level
     */
    public void setLevel(int level) {
        this.level = level;
    }


    /**
     * Gets the groupName value for this G_Info.
     * 
     * @return groupName
     */
    public java.lang.String getGroupName() {
        return groupName;
    }


    /**
     * Sets the groupName value for this G_Info.
     * 
     * @param groupName
     */
    public void setGroupName(java.lang.String groupName) {
        this.groupName = groupName;
    }


    /**
     * Gets the h_Count value for this G_Info.
     * 
     * @return h_Count The number of rows in group header
     */
    public int getH_Count() {
        return h_Count;
    }


    /**
     * Sets the h_Count value for this G_Info.
     * 
     * @param h_Count The number of rows in group header
     */
    public void setH_Count(int h_Count) {
        this.h_Count = h_Count;
    }


    /**
     * Gets the f_Count value for this G_Info.
     * 
     * @return f_Count The number of rows in group footer
     */
    public int getF_Count() {
        return f_Count;
    }


    /**
     * Sets the f_Count value for this G_Info.
     * 
     * @param f_Count The number of rows in group footer
     */
    public void setF_Count(int f_Count) {
        this.f_Count = f_Count;
    }


    /**
     * Gets the HR_Index value for this G_Info.
     * 
     * @return HR_Index The index of group header row
     */
    public int getHR_Index() {
        return HR_Index;
    }


    /**
     * Sets the HR_Index value for this G_Info.
     * 
     * @param HR_Index The index of group header row
     */
    public void setHR_Index(int HR_Index) {
        this.HR_Index = HR_Index;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof G_Info)) return false;
        G_Info other = (G_Info) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            this.level == other.getLevel() &&
            ((this.groupName==null && other.getGroupName()==null) || 
             (this.groupName!=null &&
              this.groupName.equals(other.getGroupName()))) &&
            this.h_Count == other.getH_Count() &&
            this.f_Count == other.getF_Count() &&
            this.HR_Index == other.getHR_Index();
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        _hashCode += getLevel();
        if (getGroupName() != null) {
            _hashCode += getGroupName().hashCode();
        }
        _hashCode += getH_Count();
        _hashCode += getF_Count();
        _hashCode += getHR_Index();
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "G_Info"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("level");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "Level"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("groupName");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "GroupName"));
        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("h_Count");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "H_Count"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("f_Count");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "F_Count"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("HR_Index");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "HR_Index"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        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);
    }

}
