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

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

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;

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


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

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

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

    /**
     * Field _rowSpan
     */
    private java.lang.Integer _rowSpan = new java.lang.Integer("1");

    /**
     * Field _colSpan
     */
    private java.lang.Integer _colSpan = new java.lang.Integer("1");

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


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

    public Field() 
     {
        super();
    } //-- com.queplix.core.modules.config.jxb.Field()


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

    /**
     * Returns the value of field 'col'.
     * 
     * @return Integer
     * @return the value of field 'col'.
     */
    public java.lang.Integer getCol()
    {
        return this._col;
    } //-- java.lang.Integer getCol() 

    /**
     * Returns the value of field 'colSpan'.
     * 
     * @return Integer
     * @return the value of field 'colSpan'.
     */
    public java.lang.Integer getColSpan()
    {
        return this._colSpan;
    } //-- java.lang.Integer getColSpan() 

    /**
     * Returns the value of field 'fieldid'.
     * 
     * @return String
     * @return the value of field 'fieldid'.
     */
    public java.lang.String getFieldid()
    {
        return this._fieldid;
    } //-- java.lang.String getFieldid() 

    /**
     * Returns the value of field 'row'.
     * 
     * @return Integer
     * @return the value of field 'row'.
     */
    public java.lang.Integer getRow()
    {
        return this._row;
    } //-- java.lang.Integer getRow() 

    /**
     * Returns the value of field 'rowSpan'.
     * 
     * @return Integer
     * @return the value of field 'rowSpan'.
     */
    public java.lang.Integer getRowSpan()
    {
        return this._rowSpan;
    } //-- java.lang.Integer getRowSpan() 

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

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

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

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

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

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

}
