/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
 * Schema.
 * $Id$
 */

package nz.co.cks.tms.xml;

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

import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.util.Date;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

/**
 * Class ResponseGeneralType.
 * 
 * @version $Revision$ $Date$
 */
public abstract class ResponseGeneralType implements java.io.Serializable {


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

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

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

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

    /**
     * Field _responseDateTime
     */
    private java.util.Date _responseDateTime;

    /**
     * Field _responseExpiryDateTime
     */
    private java.util.Date _responseExpiryDateTime;


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

    public ResponseGeneralType() {
        super();
    } //-- nz.co.cks.tms.xml.ResponseGeneralType()


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

    /**
     * Method getActionStringReturns the value of field
     * 'actionString'.
     * 
     * @return the value of field 'actionString'.
     */
    public java.lang.String getActionString()
    {
        return this._actionString;
    } //-- java.lang.String getActionString() 

    /**
     * Method getCodeReturns the value of field 'code'.
     * 
     * @return the value of field 'code'.
     */
    public java.lang.String getCode()
    {
        return this._code;
    } //-- java.lang.String getCode() 

    /**
     * Method getDescriptionReturns the value of field
     * 'description'.
     * 
     * @return the value of field 'description'.
     */
    public java.lang.String getDescription()
    {
        return this._description;
    } //-- java.lang.String getDescription() 

    /**
     * Method getResponseDateTimeReturns the value of field
     * 'responseDateTime'.
     * 
     * @return the value of field 'responseDateTime'.
     */
    public java.util.Date getResponseDateTime()
    {
        return this._responseDateTime;
    } //-- java.util.Date getResponseDateTime() 

    /**
     * Method getResponseExpiryDateTimeReturns the value of field
     * 'responseExpiryDateTime'.
     * 
     * @return the value of field 'responseExpiryDateTime'.
     */
    public java.util.Date getResponseExpiryDateTime()
    {
        return this._responseExpiryDateTime;
    } //-- java.util.Date getResponseExpiryDateTime() 

    /**
     * Method isValid
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method setActionStringSets the value of field
     * 'actionString'.
     * 
     * @param actionString the value of field 'actionString'.
     */
    public void setActionString(java.lang.String actionString)
    {
        this._actionString = actionString;
    } //-- void setActionString(java.lang.String) 

    /**
     * Method setCodeSets the value of field 'code'.
     * 
     * @param code the value of field 'code'.
     */
    public void setCode(java.lang.String code)
    {
        this._code = code;
    } //-- void setCode(java.lang.String) 

    /**
     * Method setDescriptionSets the value of field 'description'.
     * 
     * @param description the value of field 'description'.
     */
    public void setDescription(java.lang.String description)
    {
        this._description = description;
    } //-- void setDescription(java.lang.String) 

    /**
     * Method setResponseDateTimeSets the value of field
     * 'responseDateTime'.
     * 
     * @param responseDateTime the value of field 'responseDateTime'
     */
    public void setResponseDateTime(java.util.Date responseDateTime)
    {
        this._responseDateTime = responseDateTime;
    } //-- void setResponseDateTime(java.util.Date) 

    /**
     * Method setResponseExpiryDateTimeSets the value of field
     * 'responseExpiryDateTime'.
     * 
     * @param responseExpiryDateTime the value of field
     * 'responseExpiryDateTime'.
     */
    public void setResponseExpiryDateTime(java.util.Date responseExpiryDateTime)
    {
        this._responseExpiryDateTime = responseExpiryDateTime;
    } //-- void setResponseExpiryDateTime(java.util.Date) 

    /**
     * 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() 

}
