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

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

    /**
     * Field _historyHeader
     */
    private com.queplix.core.modules.eql.jxb.history.HistoryHeader _historyHeader;

    /**
     * Field _historyData
     */
    private com.queplix.core.modules.eql.jxb.history.HistoryData _historyData;

    /**
     * Field _ifgData
     */
    private com.queplix.core.modules.eql.jxb.history.IfgData _ifgData;

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

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

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

    /**
     * Returns the value of field 'historyData'.
     *
     * @return the value of field 'historyData'.
     */
    public com.queplix.core.modules.eql.jxb.history.HistoryData getHistoryData() {
        return this._historyData;
    } //-- com.queplix.core.modules.eql.jxb.history.HistoryData getHistoryData() 

    /**
     * Returns the value of field 'historyHeader'.
     *
     * @return the value of field 'historyHeader'.
     */
    public com.queplix.core.modules.eql.jxb.history.HistoryHeader getHistoryHeader() {
        return this._historyHeader;
    } //-- com.queplix.core.modules.eql.jxb.history.HistoryHeader getHistoryHeader() 

    /**
     * Returns the value of field 'ifgData'.
     *
     * @return the value of field 'ifgData'.
     */
    public com.queplix.core.modules.eql.jxb.history.IfgData getIfgData() {
        return this._ifgData;
    } //-- com.queplix.core.modules.eql.jxb.history.IfgData getIfgData() 

    /**
     * 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 'historyData'.
     *
     * @param historyData the value of field 'historyData'.
     */
    public void setHistoryData(
            com.queplix.core.modules.eql.jxb.history.HistoryData historyData) {
        this._historyData = historyData;
    } //-- void setHistoryData(com.queplix.core.modules.eql.jxb.history.HistoryData) 

    /**
     * Sets the value of field 'historyHeader'.
     *
     * @param historyHeader the value of field 'historyHeader'.
     */
    public void setHistoryHeader(
            com.queplix.core.modules.eql.jxb.history.HistoryHeader historyHeader) {
        this._historyHeader = historyHeader;
    } //-- void setHistoryHeader(com.queplix.core.modules.eql.jxb.history.HistoryHeader) 

    /**
     * Sets the value of field 'ifgData'.
     *
     * @param ifgData the value of field 'ifgData'.
     */
    public void setIfgData(
            com.queplix.core.modules.eql.jxb.history.IfgData ifgData) {
        this._ifgData = ifgData;
    } //-- void setIfgData(com.queplix.core.modules.eql.jxb.history.IfgData) 

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

}
