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

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

    /**
     * Field _user_id
     */
    private java.lang.Long _user_id;

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

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

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

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

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

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

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

    /**
     * Returns the value of field 'timestamp'.
     *
     * @return the value of field 'timestamp'.
     */
    public java.lang.String getTimestamp() {
        return this._timestamp;
    } //-- java.lang.String getTimestamp() 

    /**
     * Returns the value of field 'user_fullname'.
     *
     * @return the value of field 'user_fullname'.
     */
    public java.lang.String getUser_fullname() {
        return this._user_fullname;
    } //-- java.lang.String getUser_fullname() 

    /**
     * Returns the value of field 'user_id'.
     *
     * @return the value of field 'user_id'.
     */
    public java.lang.Long getUser_id() {
        return this._user_id;
    } //-- java.lang.Long getUser_id() 

    /**
     * Returns the value of field 'user_loginname'.
     *
     * @return the value of field 'user_loginname'.
     */
    public java.lang.String getUser_loginname() {
        return this._user_loginname;
    } //-- java.lang.String getUser_loginname() 

    /**
     * Returns the value of field 'user_type'.
     *
     * @return the value of field 'user_type'.
     */
    public java.lang.Integer getUser_type() {
        return this._user_type;
    } //-- java.lang.Integer getUser_type() 

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

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

    /**
     * Sets the value of field 'user_id'.
     *
     * @param user_id the value of field 'user_id'.
     */
    public void setUser_id(java.lang.Long user_id) {
        this._user_id = user_id;
    } //-- void setUser_id(java.lang.Long) 

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

    /**
     * Sets the value of field 'user_type'.
     *
     * @param user_type the value of field 'user_type'.
     */
    public void setUser_type(java.lang.Integer user_type) {
        this._user_type = user_type;
    } //-- void setUser_type(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.eql.jxb.history.HistoryHeader) Unmarshaller
                .unmarshal(
                        com.queplix.core.modules.eql.jxb.history.HistoryHeader.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() 

}
