/**
 * TableColContextMenuState.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;

public class TableColContextMenuState  implements java.io.Serializable {
    /** Can set NoRepeatValue in a table column */
    private boolean canNoRepeatValue;
    /** Can unset NoRepeatValue in a table column */
    private boolean canRepeatValue;
    /** Can expand a group column */
    private boolean canExpand;
    /** Can collapse a group column */
    private boolean canCollapse;

    public TableColContextMenuState() {
    }

    public TableColContextMenuState(
           boolean canNoRepeatValue,
           boolean canRepeatValue,
           boolean canExpand,
           boolean canCollapse) {
           this.canNoRepeatValue = canNoRepeatValue;
           this.canRepeatValue = canRepeatValue;
           this.canExpand = canExpand;
           this.canCollapse = canCollapse;
    }


    /**
     * Gets the canNoRepeatValue value for this TableColContextMenuState.
     * 
     * @return canNoRepeatValue Can set NoRepeatValue in a table column
     */
    public boolean isCanNoRepeatValue() {
        return canNoRepeatValue;
    }


    /**
     * Sets the canNoRepeatValue value for this TableColContextMenuState.
     * 
     * @param canNoRepeatValue Can set NoRepeatValue in a table column
     */
    public void setCanNoRepeatValue(boolean canNoRepeatValue) {
        this.canNoRepeatValue = canNoRepeatValue;
    }


    /**
     * Gets the canRepeatValue value for this TableColContextMenuState.
     * 
     * @return canRepeatValue Can unset NoRepeatValue in a table column
     */
    public boolean isCanRepeatValue() {
        return canRepeatValue;
    }


    /**
     * Sets the canRepeatValue value for this TableColContextMenuState.
     * 
     * @param canRepeatValue Can unset NoRepeatValue in a table column
     */
    public void setCanRepeatValue(boolean canRepeatValue) {
        this.canRepeatValue = canRepeatValue;
    }


    /**
     * Gets the canExpand value for this TableColContextMenuState.
     * 
     * @return canExpand Can expand a group column
     */
    public boolean isCanExpand() {
        return canExpand;
    }


    /**
     * Sets the canExpand value for this TableColContextMenuState.
     * 
     * @param canExpand Can expand a group column
     */
    public void setCanExpand(boolean canExpand) {
        this.canExpand = canExpand;
    }


    /**
     * Gets the canCollapse value for this TableColContextMenuState.
     * 
     * @return canCollapse Can collapse a group column
     */
    public boolean isCanCollapse() {
        return canCollapse;
    }


    /**
     * Sets the canCollapse value for this TableColContextMenuState.
     * 
     * @param canCollapse Can collapse a group column
     */
    public void setCanCollapse(boolean canCollapse) {
        this.canCollapse = canCollapse;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof TableColContextMenuState)) return false;
        TableColContextMenuState other = (TableColContextMenuState) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            this.canNoRepeatValue == other.isCanNoRepeatValue() &&
            this.canRepeatValue == other.isCanRepeatValue() &&
            this.canExpand == other.isCanExpand() &&
            this.canCollapse == other.isCanCollapse();
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        _hashCode += (isCanNoRepeatValue() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isCanRepeatValue() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isCanExpand() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isCanCollapse() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "TableColContextMenuState"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("canNoRepeatValue");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "CanNoRepeatValue"));
        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("canRepeatValue");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "CanRepeatValue"));
        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("canExpand");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "CanExpand"));
        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("canCollapse");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.eclipse.org/birt", "CanCollapse"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        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);
    }

}
