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

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


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

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

    /**
     * Field _itemCost
     */
    private java.math.BigDecimal _itemCost;


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

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


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

    /**
     * Method getItemCodeReturns the value of field 'itemCode'.
     * 
     * @return the value of field 'itemCode'.
     */
    public java.lang.String getItemCode()
    {
        return this._itemCode;
    } //-- java.lang.String getItemCode() 

    /**
     * Method getItemCostReturns the value of field 'itemCost'.
     * 
     * @return the value of field 'itemCost'.
     */
    public java.math.BigDecimal getItemCost()
    {
        return this._itemCost;
    } //-- java.math.BigDecimal getItemCost() 

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

    /**
     * Method setItemCodeSets the value of field 'itemCode'.
     * 
     * @param itemCode the value of field 'itemCode'.
     */
    public void setItemCode(java.lang.String itemCode)
    {
        this._itemCode = itemCode;
    } //-- void setItemCode(java.lang.String) 

    /**
     * Method setItemCostSets the value of field 'itemCost'.
     * 
     * @param itemCost the value of field 'itemCost'.
     */
    public void setItemCost(java.math.BigDecimal itemCost)
    {
        this._itemCost = itemCost;
    } //-- void setItemCost(java.math.BigDecimal) 

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

}
