/*
 * 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 org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

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


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

    /**
     * Field _adminAdd
     */
    private nz.co.cks.tms.xml.AdminAdd _adminAdd;

    /**
     * Field _adminUpdate
     */
    private nz.co.cks.tms.xml.AdminUpdate _adminUpdate;

    /**
     * Field _adminDelete
     */
    private nz.co.cks.tms.xml.AdminDelete _adminDelete;


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

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


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

    /**
     * Method getAdminAddReturns the value of field 'adminAdd'.
     * 
     * @return the value of field 'adminAdd'.
     */
    public nz.co.cks.tms.xml.AdminAdd getAdminAdd()
    {
        return this._adminAdd;
    } //-- nz.co.cks.tms.xml.AdminAdd getAdminAdd() 

    /**
     * Method getAdminDeleteReturns the value of field
     * 'adminDelete'.
     * 
     * @return the value of field 'adminDelete'.
     */
    public nz.co.cks.tms.xml.AdminDelete getAdminDelete()
    {
        return this._adminDelete;
    } //-- nz.co.cks.tms.xml.AdminDelete getAdminDelete() 

    /**
     * Method getAdminUpdateReturns the value of field
     * 'adminUpdate'.
     * 
     * @return the value of field 'adminUpdate'.
     */
    public nz.co.cks.tms.xml.AdminUpdate getAdminUpdate()
    {
        return this._adminUpdate;
    } //-- nz.co.cks.tms.xml.AdminUpdate getAdminUpdate() 

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

    /**
     * Method setAdminAddSets the value of field 'adminAdd'.
     * 
     * @param adminAdd the value of field 'adminAdd'.
     */
    public void setAdminAdd(nz.co.cks.tms.xml.AdminAdd adminAdd)
    {
        this._adminAdd = adminAdd;
    } //-- void setAdminAdd(nz.co.cks.tms.xml.AdminAdd) 

    /**
     * Method setAdminDeleteSets the value of field 'adminDelete'.
     * 
     * @param adminDelete the value of field 'adminDelete'.
     */
    public void setAdminDelete(nz.co.cks.tms.xml.AdminDelete adminDelete)
    {
        this._adminDelete = adminDelete;
    } //-- void setAdminDelete(nz.co.cks.tms.xml.AdminDelete) 

    /**
     * Method setAdminUpdateSets the value of field 'adminUpdate'.
     * 
     * @param adminUpdate the value of field 'adminUpdate'.
     */
    public void setAdminUpdate(nz.co.cks.tms.xml.AdminUpdate adminUpdate)
    {
        this._adminUpdate = adminUpdate;
    } //-- void setAdminUpdate(nz.co.cks.tms.xml.AdminUpdate) 

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

}
