/**
 *  Generated with Tigerstripe(tm) Tigerstripe Workbench Feature 2.2.0.v20070419-1556-GFEkmUll2-0111E.
 *
 *  Tigerstripe(tm) is a registered trademark of Tigerstripe, Inc.
 *
 *  Plugin  : Sun Microsystems Inc./SunJavaSpecificationPlugin(1.0) (1.0)
 *
 *  DO NOT EDIT THIS CODE WAS AUTOMATICALLY GENERATED
 *
 *  Generated from source Tigerstipe Artifact :
 *        javax.oss.cbe.datatypes.Quantity
 *
 *  Using template :
 *        templates/1.3/datatypeInterface.vm
 *
 * Copyright 2002-2007 The Members of the OSS through Java(TM) Initiative.
 * All rights reserved. Use is subject to license terms.
 */
package javax.oss.cbe.datatypes;

import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.bind.annotation.XmlType;

import ossj.common.cbe.datatypes.QuantityAdapter;

@XmlType
@XmlJavaTypeAdapter(value=QuantityAdapter.class)

/**
 *  Public interface definition for Quantity.
 *
 * A base / value business entity used to represent measurements.
 *
 */
public interface Quantity 
	extends java.lang.Cloneable, java.io.Serializable {


    /**
     * Deep copy of this object.
     *
     * @return The cloned object
     */
    public Object clone();


    /**
     *
     * Attribute getter for amount.
     *
     *
     * Set the total of two or more quantities
     *
     * @return the value of the amount field.
     *
     */
    public java.math.BigDecimal getAmount( );


    /**
     * Attribute setter for amount.
     *
     *
     * Set the total of two or more quantities
     * @param value - the value to use to set the amount attribute.
     * @throws java.lang.IllegalArgumentException
     *         Thrown to report that a bad argument was provided to the method.
     *
     */
    public void setAmount(java.math.BigDecimal value)
        throws
        java.lang.IllegalArgumentException;

    /**
     *
     * Attribute getter for units.
     *
     *
     * Set the units
     *
     * @return the value of the units field.
     *
     */
    public java.lang.String getUnits( );


    /**
     * Attribute setter for units.
     *
     *
     * Set the units
     * @param value - the value to use to set the units attribute.
     * @throws java.lang.IllegalArgumentException
     *         Thrown to report that a bad argument was provided to the method.
     *
     */
    public void setUnits(java.lang.String value)
        throws
        java.lang.IllegalArgumentException;


}
