com.edustructures.sifworks.food
Class SaleQuantity

java.lang.Object
  extended by com.edustructures.sifworks.Element
      extended by com.edustructures.sifworks.SIFElement
          extended by com.edustructures.sifworks.food.SaleQuantity
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SaleQuantity
extends SIFElement

Since:
2.0
Version:
2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.edustructures.sifworks.Element
CURRENT_SERIALIZE_VERSION
 
Constructor Summary
SaleQuantity()
          Constructor
SaleQuantity(java.math.BigDecimal value, MealStatus mealStatus, java.lang.String saleUnit, java.math.BigDecimal chargeToChild)
          Constructor that accepts values for all mandatory fields
 
Method Summary
 java.math.BigDecimal getChargeToChild()
          Gets the value of the <ChargeToChild> element.
 MealStatus getMealStatus()
          Gets the value of the <MealStatus> element.
 java.lang.String getSaleUnit()
          Gets the value of the <SaleUnit> element.
 java.math.BigDecimal getValue()
          Gets the value of the <Value> element.
 void removeMealStatus()
          Removes the MealStatus child element previously created by calling setMealStatus
 void setChargeToChild(java.math.BigDecimal value)
          Sets the value of the <ChargeToChild> element.
 void setMealStatus(FreeReducedStatus type)
          Sets the value of the <MealStatus> child element.
 void setMealStatus(MealStatus value)
          Sets the value of the <MealStatus> element.
 void setSaleUnit(java.lang.String value)
          Sets the value of the <SaleUnit> element.
 void setValue(java.math.BigDecimal value)
          Sets the value of the <Value> element.
 
Methods inherited from class com.edustructures.sifworks.SIFElement
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getKey, getSIFValue, getSIFVersion, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setSIFVersion, setTextValue, setXmlId, tag
 
Methods inherited from class com.edustructures.sifworks.Element
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SaleQuantity

public SaleQuantity()
Constructor


SaleQuantity

public SaleQuantity(java.math.BigDecimal value,
                    MealStatus mealStatus,
                    java.lang.String saleUnit,
                    java.math.BigDecimal chargeToChild)
Constructor that accepts values for all mandatory fields

Parameters:
value - The value of sale quantity
mealStatus -
saleUnit - Unit of Sale
chargeToChild - Charge to child per unit
Method Detail

getValue

public java.math.BigDecimal getValue()
Gets the value of the <Value> element.

The SIF specification defines the meaning of this element as: "The value of sale quantity"

Returns:
The Value element of this object.
Since:
2.0

setValue

public void setValue(java.math.BigDecimal value)
Sets the value of the <Value> element.

The SIF specification defines the meaning of this element as: "The value of sale quantity"

Parameters:
value - A BigDecimal object
Since:
2.0

setMealStatus

public void setMealStatus(MealStatus value)
Sets the value of the <MealStatus> element.

Parameters:
value - A MealStatus object
Since:
2.0

setMealStatus

public void setMealStatus(FreeReducedStatus type)
Sets the value of the <MealStatus> child element. This form of setMealStatus is provided as a convenience method that is functionally equivalent to the version of setMealStatus that accepts a single MealStatus object.

Parameters:
type - Meal status type.
Since:
2.0

getMealStatus

public MealStatus getMealStatus()
Gets the value of the <MealStatus> element.

Returns:
A MealStatus object
Since:
2.0

removeMealStatus

public void removeMealStatus()
Removes the MealStatus child element previously created by calling setMealStatus

Since:
2.0

getSaleUnit

public java.lang.String getSaleUnit()
Gets the value of the <SaleUnit> element.

The SIF specification defines the meaning of this element as: "Unit of Sale"

Returns:
The SaleUnit element of this object.
Since:
2.0

setSaleUnit

public void setSaleUnit(java.lang.String value)
Sets the value of the <SaleUnit> element.

The SIF specification defines the meaning of this element as: "Unit of Sale"

Parameters:
value - A String object
Since:
2.0

getChargeToChild

public java.math.BigDecimal getChargeToChild()
Gets the value of the <ChargeToChild> element.

The SIF specification defines the meaning of this element as: "Charge to child per unit"

Returns:
The ChargeToChild element of this object.
Since:
2.0

setChargeToChild

public void setChargeToChild(java.math.BigDecimal value)
Sets the value of the <ChargeToChild> element.

The SIF specification defines the meaning of this element as: "Charge to child per unit"

Parameters:
value - A BigDecimal object
Since:
2.0


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.