/*
 * 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 ResField.
 *
 * @version $Revision$ $Date$
 */
public class ResField 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 _loaded
     */
    private java.lang.Boolean _loaded = new java.lang.Boolean("true");

    /**
     * Field _hasContent
     */
    private java.lang.Boolean _hasContent = new java.lang.Boolean("true");

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

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

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

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

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

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

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

    /**
     * Returns the value of field 'loaded'.
     *
     * @return the value of field 'loaded'.
     */
    public java.lang.Boolean getLoaded() {
        return this._loaded;
    } //-- java.lang.Boolean getLoaded() 

    /**
     * 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 'recordspan'.
     *
     * @return the value of field 'recordspan'.
     */
    public java.lang.Integer getRecordspan() {
        return this._recordspan;
    } //-- java.lang.Integer getRecordspan() 

    /**
     * Returns the value of field 'resFieldText'.
     *
     * @return the value of field 'resFieldText'.
     */
    public java.lang.String getResFieldText() {
        return this._resFieldText;
    } //-- java.lang.String getResFieldText() 

    /**
     * Returns the value of field 'resFieldValue'.
     *
     * @return the value of field 'resFieldValue'.
     */
    public java.lang.String getResFieldValue() {
        return this._resFieldValue;
    } //-- java.lang.String getResFieldValue() 

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

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

    /**
     * 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 'recordspan'.
     *
     * @param recordspan the value of field 'recordspan'.
     */
    public void setRecordspan(java.lang.Integer recordspan) {
        this._recordspan = recordspan;
    } //-- void setRecordspan(java.lang.Integer) 

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

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

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

}
