|
||||||||||
| 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.ItemQuantity
public class ItemQuantity
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
ItemQuantity()
Constructor |
|
ItemQuantity(java.lang.String foodserviceItemPortionRefId,
java.math.BigDecimal value)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getCost()
Gets the value of the <Cost> element. |
java.lang.String |
getFoodserviceItemPortionRefId()
Gets the value of the FoodserviceItemPortionRefId attribute. |
GradeLevels |
getGradeLevels()
Gets the value of the <GradeLevels> element. |
java.lang.String |
getMealType()
Gets the value of the <MealType> element. |
java.math.BigDecimal |
getValue()
Gets the value of the Value attribute. |
void |
removeGradeLevels()
Removes the GradeLevels child element previously created by calling setGradeLevels |
void |
setCost(java.math.BigDecimal value)
Sets the value of the <Cost> element. |
void |
setFoodserviceItemPortionRefId(java.lang.String value)
Sets the value of the FoodserviceItemPortionRefId attribute. |
void |
setGradeLevels(GradeLevels value)
Sets the value of the <GradeLevels> element. |
void |
setMealType(MealTypes value)
Sets the value of the <MealType> element. |
void |
setMealType(java.lang.String value)
Sets the value of the <MealType> element as a String. |
void |
setValue(java.math.BigDecimal value)
Sets the value of the Value attribute. |
| 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 ItemQuantity()
public ItemQuantity(java.lang.String foodserviceItemPortionRefId,
java.math.BigDecimal value)
foodserviceItemPortionRefId - GUID of FoodserviceItemPortion objectvalue - The value of item quantity| Method Detail |
|---|
public java.lang.String getFoodserviceItemPortionRefId()
FoodserviceItemPortionRefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID of FoodserviceItemPortion object"
FoodserviceItemPortionRefId attribute of this object.public void setFoodserviceItemPortionRefId(java.lang.String value)
FoodserviceItemPortionRefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID of FoodserviceItemPortion object"
value - A String objectpublic java.math.BigDecimal getValue()
Value attribute.
The SIF specification defines the meaning of this attribute as: "The value of item quantity"
Value attribute of this object.public void setValue(java.math.BigDecimal value)
Value attribute.
The SIF specification defines the meaning of this attribute as: "The value of item quantity"
value - A BigDecimal objectpublic java.lang.String getMealType()
<MealType> element.
MealType element of this object.public void setMealType(MealTypes value)
<MealType> element.
value - A constant defined by the MealTypes classpublic void setMealType(java.lang.String value)
<MealType> element as a String.
value - The value as a Stringpublic void setGradeLevels(GradeLevels value)
<GradeLevels> element.
value - A GradeLevels objectpublic GradeLevels getGradeLevels()
<GradeLevels> element.
GradeLevels objectpublic void removeGradeLevels()
GradeLevels child element previously created by calling setGradeLevels
public java.math.BigDecimal getCost()
<Cost> element.
The SIF specification defines the meaning of this element as: "The cost (dollar value) of the item sold."
Cost element of this object.public void setCost(java.math.BigDecimal value)
<Cost> element.
The SIF specification defines the meaning of this element as: "The cost (dollar value) of the item sold."
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||