/*
 * 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 org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

/**
 * Class ResHeaderDataset.
 *
 * @version $Revision$ $Date$
 */
public class ResHeaderDataset extends com.queplix.core.utils.jxb.JXBObject
        implements java.io.Serializable {

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

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

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

    /**
     * Field _sendonrequest
     */
    private java.lang.Boolean _sendonrequest;

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

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

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

    /**
     * Field _required
     */
    private java.lang.Boolean _required;

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

    /**
     * Field _resHeader
     */
    private com.queplix.core.modules.eqlext.jxb.gr.ResHeader _resHeader;

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

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

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

    /**
     * Returns the value of field 'caption'.
     *
     * @return the value of field 'caption'.
     */
    public java.lang.String getCaption() {
        return this._caption;
    } //-- java.lang.String getCaption() 

    /**
     * Returns the value of field 'entity'.
     *
     * @return the value of field 'entity'.
     */
    public java.lang.String getEntity() {
        return this._entity;
    } //-- java.lang.String getForm()

    /**
     * Returns the value of field 'external'.
     *
     * @return the value of field 'external'.
     */
    public java.lang.String getExternal() {
        return this._external;
    } //-- java.lang.String getExternal() 

    /**
     * Returns the value of field 'internal'.
     *
     * @return the value of field 'internal'.
     */
    public java.lang.String getInternal() {
        return this._internal;
    } //-- java.lang.String getInternal() 

    /**
     * Returns the value of field 'linkedEntity'.
     *
     * @return the value of field 'linkedEntity'.
     */
    public java.lang.String getLinkedEntity() {
        return this._linkedEntity;
    } //-- java.lang.String getLinkedEntity() 

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

    /**
     * Returns the value of field 'required'.
     *
     * @return the value of field 'required'.
     */
    public java.lang.Boolean getRequired() {
        return this._required;
    } //-- java.lang.Boolean getRequired() 

    /**
     * Returns the value of field 'resHeader'.
     *
     * @return the value of field 'resHeader'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.ResHeader getResHeader() {
        return this._resHeader;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.ResHeader getResHeader() 

    /**
     * Returns the value of field 'sendonrequest'.
     *
     * @return the value of field 'sendonrequest'.
     */
    public java.lang.Boolean getSendonrequest() {
        return this._sendonrequest;
    } //-- java.lang.Boolean getSendonrequest() 

    /**
     * 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 'caption'.
     *
     * @param caption the value of field 'caption'.
     */
    public void setCaption(java.lang.String caption) {
        this._caption = caption;
    } //-- void setCaption(java.lang.String) 

    /**
     * Sets the value of field 'entity'.
     *
     * @param entity the value of field 'entity'.
     */
    public void setEntity(java.lang.String entity) {
        this._entity = entity;
    } //-- void setForm(java.lang.String)

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

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

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

    /**
     * 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 'required'.
     *
     * @param required the value of field 'required'.
     */
    public void setRequired(java.lang.Boolean required) {
        this._required = required;
    } //-- void setRequired(java.lang.Boolean) 

    /**
     * Sets the value of field 'resHeader'.
     *
     * @param resHeader the value of field 'resHeader'.
     */
    public void setResHeader(
            com.queplix.core.modules.eqlext.jxb.gr.ResHeader resHeader) {
        this._resHeader = resHeader;
    } //-- void setResHeader(com.queplix.core.modules.eqlext.jxb.gr.ResHeader) 

    /**
     * Sets the value of field 'sendonrequest'.
     *
     * @param sendonrequest the value of field 'sendonrequest'.
     */
    public void setSendonrequest(java.lang.Boolean sendonrequest) {
        this._sendonrequest = sendonrequest;
    } //-- void setSendonrequest(java.lang.Boolean) 

    /**
     * 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.ResHeaderDataset) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eqlext.jxb.gr.ResHeaderDataset.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() 

}
