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

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

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

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

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

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

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

    public HistoryUnparsedTopicType() {
        super();
    } //-- com.queplix.core.modules.eql.jxb.history.HistoryUnparsedTopicType()

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

    /**
     * Returns the value of field 'historyUnparsedData'.
     *
     * @return the value of field 'historyUnparsedData'.
     */
    public java.lang.String getHistoryUnparsedData() {
        return this._historyUnparsedData;
    } //-- java.lang.String getHistoryUnparsedData() 

    /**
     * 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 'historyUnparsedData'.
     *
     * @param historyUnparsedData the value of field
     *                            'historyUnparsedData'.
     */
    public void setHistoryUnparsedData(java.lang.String historyUnparsedData) {
        this._historyUnparsedData = historyUnparsedData;
    } //-- void setHistoryUnparsedData(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.eql.jxb.history.HistoryUnparsedTopicType) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eql.jxb.history.HistoryUnparsedTopicType.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() 

}
