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

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

import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

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

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

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

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

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

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

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

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

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

    /**
     * Returns the value of field 'dateText'.
     *
     * @return the value of field 'dateText'.
     */
    public java.lang.String getDateText() {
        return this._dateText;
    } //-- java.lang.String getDateText() 

    /**
     * Returns the value of field 'dateTime'.
     *
     * @return the value of field 'dateTime'.
     */
    public java.lang.String getDateTime() {
        return this._dateTime;
    } //-- java.lang.String getDateTime() 

    /**
     * Returns the value of field 'dateValue'.
     *
     * @return the value of field 'dateValue'.
     */
    public java.lang.String getDateValue() {
        return this._dateValue;
    } //-- java.lang.String getDateValue() 

    /**
     * Returns the value of field 'key'.
     *
     * @return the value of field 'key'.
     */
    public java.lang.String getKey() {
        return this._key;
    } //-- java.lang.String getKey() 

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

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

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

    /**
     * Sets the value of field 'key'.
     *
     * @param key the value of field 'key'.
     */
    public void setKey(java.lang.String key) {
        this._key = key;
    } //-- void setKey(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.calendar.Qxdate) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eqlext.jxb.calendar.Qxdate.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() 

}
