|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.food.SaleQuantity
public class SaleQuantity
| 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 |
|---|
public SaleQuantity()
public SaleQuantity(java.math.BigDecimal value,
MealStatus mealStatus,
java.lang.String saleUnit,
java.math.BigDecimal chargeToChild)
value - The value of sale quantitymealStatus - saleUnit - Unit of SalechargeToChild - Charge to child per unit| Method Detail |
|---|
public java.math.BigDecimal getValue()
<Value> element.
The SIF specification defines the meaning of this element as: "The value of sale quantity"
Value element of this object.public void setValue(java.math.BigDecimal value)
<Value> element.
The SIF specification defines the meaning of this element as: "The value of sale quantity"
value - A BigDecimal objectpublic void setMealStatus(MealStatus value)
<MealStatus> element.
value - A MealStatus objectpublic void setMealStatus(FreeReducedStatus type)
<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.
type - Meal status type.public MealStatus getMealStatus()
<MealStatus> element.
MealStatus objectpublic void removeMealStatus()
MealStatus child element previously created by calling setMealStatus
public java.lang.String getSaleUnit()
<SaleUnit> element.
The SIF specification defines the meaning of this element as: "Unit of Sale"
SaleUnit element of this object.public void setSaleUnit(java.lang.String value)
<SaleUnit> element.
The SIF specification defines the meaning of this element as: "Unit of Sale"
value - A String objectpublic java.math.BigDecimal getChargeToChild()
<ChargeToChild> element.
The SIF specification defines the meaning of this element as: "Charge to child per unit"
ChargeToChild element of this object.public void setChargeToChild(java.math.BigDecimal value)
<ChargeToChild> element.
The SIF specification defines the meaning of this element as: "Charge to child per unit"
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||