/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
 * Schema.
 * $Id$
 */

package com.queplix.core.modules.eqlext.jxb.gr;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType;
import java.io.IOException;
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.xml.sax.ContentHandler;

/**
 * The chart definition
 * 
 * @version $Revision$ $Date$
 */
public class Chart extends com.queplix.core.utils.jxb.JXBObject 
implements java.io.Serializable
{


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _name
     */
    private java.lang.String _name;

    /**
     * Field _visibilty
     */
    private com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType _visibilty;

    /**
     * Field _chartReq
     */
    private com.queplix.core.modules.eqlext.jxb.gr.ChartReq _chartReq;

    /**
     * Chart's parameters
     */
    private com.queplix.core.modules.eqlext.jxb.gr.ChartParams _chartParams;


      //----------------/
     //- Constructors -/
    //----------------/

    public Chart() 
     {
        super();
    } //-- com.queplix.core.modules.eqlext.jxb.gr.Chart()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Returns the value of field 'chartParams'. The field
     * 'chartParams' has the following description: Chart's
     * parameters
     * 
     * @return ChartParams
     * @return the value of field 'chartParams'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.ChartParams getChartParams()
    {
        return this._chartParams;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.ChartParams getChartParams() 

    /**
     * Returns the value of field 'chartReq'.
     * 
     * @return ChartReq
     * @return the value of field 'chartReq'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.ChartReq getChartReq()
    {
        return this._chartReq;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.ChartReq getChartReq() 

    /**
     * Returns the value of field 'name'.
     * 
     * @return String
     * @return the value of field 'name'.
     */
    public java.lang.String getName()
    {
        return this._name;
    } //-- java.lang.String getName() 

    /**
     * Returns the value of field 'visibilty'.
     * 
     * @return ChartVisibiltyType
     * @return the value of field 'visibilty'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType getVisibilty()
    {
        return this._visibilty;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType getVisibilty() 

    /**
     * Method isValid
     * 
     * 
     * 
     * @return boolean
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method marshal
     * 
     * 
     * 
     * @param out
     */
    public void marshal(java.io.Writer out)
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        
        Marshaller.marshal(this, out);
    } //-- void marshal(java.io.Writer) 

    /**
     * Method marshal
     * 
     * 
     * 
     * @param handler
     */
    public void marshal(org.xml.sax.ContentHandler handler)
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        
        Marshaller.marshal(this, handler);
    } //-- void marshal(org.xml.sax.ContentHandler) 

    /**
     * Sets the value of field 'chartParams'. The field
     * 'chartParams' has the following description: Chart's
     * parameters
     * 
     * @param chartParams the value of field 'chartParams'.
     */
    public void setChartParams(com.queplix.core.modules.eqlext.jxb.gr.ChartParams chartParams)
    {
        this._chartParams = chartParams;
    } //-- void setChartParams(com.queplix.core.modules.eqlext.jxb.gr.ChartParams) 

    /**
     * Sets the value of field 'chartReq'.
     * 
     * @param chartReq the value of field 'chartReq'.
     */
    public void setChartReq(com.queplix.core.modules.eqlext.jxb.gr.ChartReq chartReq)
    {
        this._chartReq = chartReq;
    } //-- void setChartReq(com.queplix.core.modules.eqlext.jxb.gr.ChartReq) 

    /**
     * Sets the value of field 'name'.
     * 
     * @param name the value of field 'name'.
     */
    public void setName(java.lang.String name)
    {
        this._name = name;
    } //-- void setName(java.lang.String) 

    /**
     * Sets the value of field 'visibilty'.
     * 
     * @param visibilty the value of field 'visibilty'.
     */
    public void setVisibilty(com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType visibilty)
    {
        this._visibilty = visibilty;
    } //-- void setVisibilty(com.queplix.core.modules.eqlext.jxb.gr.types.ChartVisibiltyType) 

    /**
     * Method unmarshal
     * 
     * 
     * 
     * @param reader
     * @return Object
     */
    public static java.lang.Object unmarshal(java.io.Reader reader)
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
    {
        return (com.queplix.core.modules.eqlext.jxb.gr.Chart) Unmarshaller.unmarshal(com.queplix.core.modules.eqlext.jxb.gr.Chart.class, reader);
    } //-- java.lang.Object unmarshal(java.io.Reader) 

    /**
     * Method validate
     * 
     */
    public void validate()
        throws org.exolab.castor.xml.ValidationException
    {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
