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

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

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

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

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

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

    /**
     * Field _next
     */
    private java.lang.Boolean _next = new java.lang.Boolean("false");

    /**
     * Field _prev
     */
    private java.lang.Boolean _prev = new java.lang.Boolean("false");

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

    /**
     * Field _reqs
     */
    private com.queplix.core.modules.eqlext.jxb.gr.Reqs _reqs;

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

    /**
     * Field _res
     */
    private com.queplix.core.modules.eqlext.jxb.gr.Res _res;

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

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

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

    /**
     * Returns the value of field 'count'.
     *
     * @return the value of field 'count'.
     */
    public java.lang.Integer getCount() {
        return this._count;
    } //-- java.lang.Integer getCount() 

    /**
     * Returns the value of field 'new'.
     *
     * @return the value of field 'new'.
     */
    public java.lang.Boolean getNew() {
        return this._new;
    } //-- java.lang.Boolean getNew() 

    /**
     * Returns the value of field 'next'.
     *
     * @return the value of field 'next'.
     */
    public java.lang.Boolean getNext() {
        return this._next;
    } //-- java.lang.Boolean getNext() 

    /**
     * Returns the value of field 'page'.
     *
     * @return the value of field 'page'.
     */
    public java.lang.Integer getPage() {
        return this._page;
    } //-- java.lang.Integer getPage() 

    /**
     * Returns the value of field 'pagesize'.
     *
     * @return the value of field 'pagesize'.
     */
    public java.lang.Integer getPagesize() {
        return this._pagesize;
    } //-- java.lang.Integer getPagesize() 

    /**
     * Returns the value of field 'prev'.
     *
     * @return the value of field 'prev'.
     */
    public java.lang.Boolean getPrev() {
        return this._prev;
    } //-- java.lang.Boolean getPrev() 

    /**
     * Returns the value of field 'reqs'.
     *
     * @return the value of field 'reqs'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.Reqs getReqs() {
        return this._reqs;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.Reqs getReqs() 

    /**
     * Returns the value of field 'res'.
     *
     * @return the value of field 'res'.
     */
    public com.queplix.core.modules.eqlext.jxb.gr.Res getRes() {
        return this._res;
    } //-- com.queplix.core.modules.eqlext.jxb.gr.Res getRes() 

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

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

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

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

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

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

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

    /**
     * Sets the value of field 'reqs'.
     *
     * @param reqs the value of field 'reqs'.
     */
    public void setReqs(com.queplix.core.modules.eqlext.jxb.gr.Reqs reqs) {
        this._reqs = reqs;
    } //-- void setReqs(com.queplix.core.modules.eqlext.jxb.gr.Reqs) 

    /**
     * Sets the value of field 'res'.
     *
     * @param res the value of field 'res'.
     */
    public void setRes(com.queplix.core.modules.eqlext.jxb.gr.Res res) {
        this._res = res;
    } //-- void setRes(com.queplix.core.modules.eqlext.jxb.gr.Res) 

    /**
     * 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 'rows'.
     *
     * @param rows the value of field 'rows'.
     */
    public void setRows(java.lang.Integer rows) {
        this._rows = rows;
    } //-- void setRows(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.eqlext.jxb.gr.RessType) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eqlext.jxb.gr.RessType.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() 

}
