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

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

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

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

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

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

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

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

    /**
     * Returns the value of field 'pkeyCaption'.
     *
     * @return the value of field 'pkeyCaption'.
     */
    public java.lang.String getPkeyCaption() {
        return this._pkeyCaption;
    } //-- java.lang.String getPkeyCaption() 

    /**
     * Returns the value of field 'pkeyName'.
     *
     * @return the value of field 'pkeyName'.
     */
    public java.lang.String getPkeyName() {
        return this._pkeyName;
    } //-- java.lang.String getPkeyName() 

    /**
     * Returns the value of field 'pkeyValue'.
     *
     * @return the value of field 'pkeyValue'.
     */
    public java.lang.String getPkeyValue() {
        return this._pkeyValue;
    } //-- java.lang.String getPkeyValue() 

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

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

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

}
