/*
 * 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 EnquiryBlkType.
 * 
 * @version $Revision$ $Date$
 */
public abstract class EnquiryBlkType implements java.io.Serializable {


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

    /**
     * Field _enquiryNcb
     */
    private nz.co.cks.tms.xml.EnquiryNcb _enquiryNcb;

    /**
     * Field _enquiryNcbParent
     */
    private nz.co.cks.tms.xml.EnquiryNcbParent _enquiryNcbParent;

    /**
     * Field _enquiryNcbChildren
     */
    private nz.co.cks.tms.xml.EnquiryNcbChildren _enquiryNcbChildren;

    /**
     * Field _enquiryNcbService
     */
    private nz.co.cks.tms.xml.EnquiryNcbService _enquiryNcbService;

    /**
     * Field _enquiryNcbParentService
     */
    private nz.co.cks.tms.xml.EnquiryNcbParentService _enquiryNcbParentService;

    /**
     * Field _enquiryNcbAddress
     */
    private nz.co.cks.tms.xml.EnquiryNcbAddress _enquiryNcbAddress;

    /**
     * Field _enquiryItem
     */
    private nz.co.cks.tms.xml.EnquiryItem _enquiryItem;


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

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


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

    /**
     * Method getEnquiryItemReturns the value of field
     * 'enquiryItem'.
     * 
     * @return the value of field 'enquiryItem'.
     */
    public nz.co.cks.tms.xml.EnquiryItem getEnquiryItem()
    {
        return this._enquiryItem;
    } //-- nz.co.cks.tms.xml.EnquiryItem getEnquiryItem() 

    /**
     * Method getEnquiryNcbReturns the value of field 'enquiryNcb'.
     * 
     * @return the value of field 'enquiryNcb'.
     */
    public nz.co.cks.tms.xml.EnquiryNcb getEnquiryNcb()
    {
        return this._enquiryNcb;
    } //-- nz.co.cks.tms.xml.EnquiryNcb getEnquiryNcb() 

    /**
     * Method getEnquiryNcbAddressReturns the value of field
     * 'enquiryNcbAddress'.
     * 
     * @return the value of field 'enquiryNcbAddress'.
     */
    public nz.co.cks.tms.xml.EnquiryNcbAddress getEnquiryNcbAddress()
    {
        return this._enquiryNcbAddress;
    } //-- nz.co.cks.tms.xml.EnquiryNcbAddress getEnquiryNcbAddress() 

    /**
     * Method getEnquiryNcbChildrenReturns the value of field
     * 'enquiryNcbChildren'.
     * 
     * @return the value of field 'enquiryNcbChildren'.
     */
    public nz.co.cks.tms.xml.EnquiryNcbChildren getEnquiryNcbChildren()
    {
        return this._enquiryNcbChildren;
    } //-- nz.co.cks.tms.xml.EnquiryNcbChildren getEnquiryNcbChildren() 

    /**
     * Method getEnquiryNcbParentReturns the value of field
     * 'enquiryNcbParent'.
     * 
     * @return the value of field 'enquiryNcbParent'.
     */
    public nz.co.cks.tms.xml.EnquiryNcbParent getEnquiryNcbParent()
    {
        return this._enquiryNcbParent;
    } //-- nz.co.cks.tms.xml.EnquiryNcbParent getEnquiryNcbParent() 

    /**
     * Method getEnquiryNcbParentServiceReturns the value of field
     * 'enquiryNcbParentService'.
     * 
     * @return the value of field 'enquiryNcbParentService'.
     */
    public nz.co.cks.tms.xml.EnquiryNcbParentService getEnquiryNcbParentService()
    {
        return this._enquiryNcbParentService;
    } //-- nz.co.cks.tms.xml.EnquiryNcbParentService getEnquiryNcbParentService() 

    /**
     * Method getEnquiryNcbServiceReturns the value of field
     * 'enquiryNcbService'.
     * 
     * @return the value of field 'enquiryNcbService'.
     */
    public nz.co.cks.tms.xml.EnquiryNcbService getEnquiryNcbService()
    {
        return this._enquiryNcbService;
    } //-- nz.co.cks.tms.xml.EnquiryNcbService getEnquiryNcbService() 

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

    /**
     * Method setEnquiryItemSets the value of field 'enquiryItem'.
     * 
     * @param enquiryItem the value of field 'enquiryItem'.
     */
    public void setEnquiryItem(nz.co.cks.tms.xml.EnquiryItem enquiryItem)
    {
        this._enquiryItem = enquiryItem;
    } //-- void setEnquiryItem(nz.co.cks.tms.xml.EnquiryItem) 

    /**
     * Method setEnquiryNcbSets the value of field 'enquiryNcb'.
     * 
     * @param enquiryNcb the value of field 'enquiryNcb'.
     */
    public void setEnquiryNcb(nz.co.cks.tms.xml.EnquiryNcb enquiryNcb)
    {
        this._enquiryNcb = enquiryNcb;
    } //-- void setEnquiryNcb(nz.co.cks.tms.xml.EnquiryNcb) 

    /**
     * Method setEnquiryNcbAddressSets the value of field
     * 'enquiryNcbAddress'.
     * 
     * @param enquiryNcbAddress the value of field
     * 'enquiryNcbAddress'.
     */
    public void setEnquiryNcbAddress(nz.co.cks.tms.xml.EnquiryNcbAddress enquiryNcbAddress)
    {
        this._enquiryNcbAddress = enquiryNcbAddress;
    } //-- void setEnquiryNcbAddress(nz.co.cks.tms.xml.EnquiryNcbAddress) 

    /**
     * Method setEnquiryNcbChildrenSets the value of field
     * 'enquiryNcbChildren'.
     * 
     * @param enquiryNcbChildren the value of field
     * 'enquiryNcbChildren'.
     */
    public void setEnquiryNcbChildren(nz.co.cks.tms.xml.EnquiryNcbChildren enquiryNcbChildren)
    {
        this._enquiryNcbChildren = enquiryNcbChildren;
    } //-- void setEnquiryNcbChildren(nz.co.cks.tms.xml.EnquiryNcbChildren) 

    /**
     * Method setEnquiryNcbParentSets the value of field
     * 'enquiryNcbParent'.
     * 
     * @param enquiryNcbParent the value of field 'enquiryNcbParent'
     */
    public void setEnquiryNcbParent(nz.co.cks.tms.xml.EnquiryNcbParent enquiryNcbParent)
    {
        this._enquiryNcbParent = enquiryNcbParent;
    } //-- void setEnquiryNcbParent(nz.co.cks.tms.xml.EnquiryNcbParent) 

    /**
     * Method setEnquiryNcbParentServiceSets the value of field
     * 'enquiryNcbParentService'.
     * 
     * @param enquiryNcbParentService the value of field
     * 'enquiryNcbParentService'.
     */
    public void setEnquiryNcbParentService(nz.co.cks.tms.xml.EnquiryNcbParentService enquiryNcbParentService)
    {
        this._enquiryNcbParentService = enquiryNcbParentService;
    } //-- void setEnquiryNcbParentService(nz.co.cks.tms.xml.EnquiryNcbParentService) 

    /**
     * Method setEnquiryNcbServiceSets the value of field
     * 'enquiryNcbService'.
     * 
     * @param enquiryNcbService the value of field
     * 'enquiryNcbService'.
     */
    public void setEnquiryNcbService(nz.co.cks.tms.xml.EnquiryNcbService enquiryNcbService)
    {
        this._enquiryNcbService = enquiryNcbService;
    } //-- void setEnquiryNcbService(nz.co.cks.tms.xml.EnquiryNcbService) 

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

}
