/*
 * 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 ResHeaderField.
 *
 * @version $Revision$ $Date$
 */
public class ResHeaderField extends com.queplix.core.utils.jxb.JXBObject
        implements java.io.Serializable {

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

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

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

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

    /**
     * Field _datatype
     */
    private com.queplix.core.modules.eqlext.jxb.gr.types.DataSType _datatype;

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

    /**
     * Field _datasize
     */
    private java.lang.Integer _datasize;

    /**
     * Field _min
     */
    private java.lang.Double _min;

    /**
     * Field _max
     */
    private java.lang.Double _max;

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

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

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

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

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

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

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

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

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

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

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

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

    //-----------/
    //- 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 'checked'.
     *
     * @return the value of field 'checked'.
     */
    public java.lang.String getChecked() {
        return this._checked;
    } //-- java.lang.String getChecked() 

    /**
     * Returns the value of field 'datasize'.
     *
     * @return the value of field 'datasize'.
     */
    public java.lang.Integer getDatasize() {
        return this._datasize;
    } //-- java.lang.Integer getDatasize() 

    /**
     * Returns the value of field 'datatype'.
     *
     * @return the value of field 'datatype'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.types.DataSType getDatatype() {
        return this._datatype;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.types.DataSType getDatatype() 

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

    /**
     * Returns the value of field 'grid'.
     *
     * @return the value of field 'grid'.
     */
    public java.lang.Boolean getGrid() {
        return this._grid;
    } //-- java.lang.Boolean getGrid() 

    /**
     * Returns the value of field 'hasdefvalue'.
     *
     * @return the value of field 'hasdefvalue'.
     */
    public java.lang.Boolean getHasdefvalue() {
        return this._hasdefvalue;
    } //-- java.lang.Boolean getHasdefvalue() 

    /**
     * Returns the value of field 'haslistref'.
     *
     * @return the value of field 'haslistref'.
     */
    public java.lang.Boolean getHaslistref() {
        return this._haslistref;
    } //-- java.lang.Boolean getHaslistref() 

    /**
     * Returns the value of field 'max'.
     *
     * @return the value of field 'max'.
     */
    public java.lang.Double getMax() {
        return this._max;
    } //-- java.lang.Double getMax() 

    /**
     * Returns the value of field 'memotype'.
     *
     * @return the value of field 'memotype'.
     */
    public java.lang.String getMemotype() {
        return this._memotype;
    } //-- java.lang.String getMemotype() 

    /**
     * Returns the value of field 'min'.
     *
     * @return the value of field 'min'.
     */
    public java.lang.Double getMin() {
        return this._min;
    } //-- java.lang.Double getMin() 

    /**
     * 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 'nullable'.
     *
     * @return the value of field 'nullable'.
     */
    public java.lang.Boolean getNullable() {
        return this._nullable;
    } //-- java.lang.Boolean getNullable() 

    /**
     * Returns the value of field 'pkey'.
     *
     * @return the value of field 'pkey'.
     */
    public java.lang.Boolean getPkey() {
        return this._pkey;
    } //-- java.lang.Boolean getPkey() 

    /**
     * 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 'sendonrequest'.
     *
     * @return the value of field 'sendonrequest'.
     */
    public java.lang.Boolean getSendonrequest() {
        return this._sendonrequest;
    } //-- java.lang.Boolean getSendonrequest() 

    /**
     * Returns the value of field 'unchecked'.
     *
     * @return the value of field 'unchecked'.
     */
    public java.lang.String getUnchecked() {
        return this._unchecked;
    } //-- java.lang.String getUnchecked() 

    /**
     * Returns the value of field 'visible'.
     *
     * @return the value of field 'visible'.
     */
    public java.lang.Boolean getVisible() {
        return this._visible;
    } //-- java.lang.Boolean getVisible() 

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

    /**
     * Sets the value of field 'datasize'.
     *
     * @param datasize the value of field 'datasize'.
     */
    public void setDatasize(java.lang.Integer datasize) {
        this._datasize = datasize;
    } //-- void setDatasize(java.lang.Integer) 

    /**
     * Sets the value of field 'datatype'.
     *
     * @param datatype the value of field 'datatype'.
     */
    public void setDatatype(
            com.queplix.core.modules.eqlext.jxb.gr.types.DataSType datatype) {
        this._datatype = datatype;
    } //-- void setDatatype(com.queplix.core.modules.eqlext.jxb.gr.types.DataSType) 

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

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

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

    /**
     * Sets the value of field 'max'.
     *
     * @param max the value of field 'max'.
     */
    public void setMax(java.lang.Double max) {
        this._max = max;
    } //-- void setMax(java.lang.Double) 

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

    /**
     * Sets the value of field 'min'.
     *
     * @param min the value of field 'min'.
     */
    public void setMin(java.lang.Double min) {
        this._min = min;
    } //-- void setMin(java.lang.Double) 

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

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

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

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

    /**
     * Sets the value of field 'visible'.
     *
     * @param visible the value of field 'visible'.
     */
    public void setVisible(java.lang.Boolean visible) {
        this._visible = visible;
    } //-- void setVisible(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.ResHeaderField) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eqlext.jxb.gr.ResHeaderField.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() 

}
