com.edustructures.sifworks.food
Class ItemQuantity

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

public class ItemQuantity
extends SIFElement

Since:
1.5r1
Version:
2.0
See Also:
Serialized Form

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

ItemQuantity

public ItemQuantity()
Constructor


ItemQuantity

public ItemQuantity(java.lang.String foodserviceItemPortionRefId,
                    java.math.BigDecimal value)
Constructor that accepts values for all mandatory fields

Parameters:
foodserviceItemPortionRefId - GUID of FoodserviceItemPortion object
value - The value of item quantity
Method Detail

getFoodserviceItemPortionRefId

public java.lang.String getFoodserviceItemPortionRefId()
Gets the value of the FoodserviceItemPortionRefId attribute.

The SIF specification defines the meaning of this attribute as: "GUID of FoodserviceItemPortion object"

Returns:
The FoodserviceItemPortionRefId attribute of this object.
Since:
1.5r1

setFoodserviceItemPortionRefId

public void setFoodserviceItemPortionRefId(java.lang.String value)
Sets the value of the FoodserviceItemPortionRefId attribute.

The SIF specification defines the meaning of this attribute as: "GUID of FoodserviceItemPortion object"

Parameters:
value - A String object
Since:
1.5r1

getValue

public java.math.BigDecimal getValue()
Gets the value of the Value attribute.

The SIF specification defines the meaning of this attribute as: "The value of item quantity"

Returns:
The Value attribute of this object.
Since:
1.5r1

setValue

public void setValue(java.math.BigDecimal value)
Sets the value of the Value attribute.

The SIF specification defines the meaning of this attribute as: "The value of item quantity"

Parameters:
value - A BigDecimal object
Since:
1.5r1

getMealType

public java.lang.String getMealType()
Gets the value of the <MealType> element.

Returns:
The MealType element of this object.
Since:
1.5r1

setMealType

public void setMealType(MealTypes value)
Sets the value of the <MealType> element.

Parameters:
value - A constant defined by the MealTypes class
Since:
1.5r1

setMealType

public void setMealType(java.lang.String value)
Sets the value of the <MealType> element as a String.

Parameters:
value - The value as a String
Since:
1.5r1

setGradeLevels

public void setGradeLevels(GradeLevels value)
Sets the value of the <GradeLevels> element.

Parameters:
value - A GradeLevels object
Since:
1.5r1

getGradeLevels

public GradeLevels getGradeLevels()
Gets the value of the <GradeLevels> element.

Returns:
A GradeLevels object
Since:
1.5r1

removeGradeLevels

public void removeGradeLevels()
Removes the GradeLevels child element previously created by calling setGradeLevels

Since:
1.5r1

getCost

public java.math.BigDecimal getCost()
Gets the value of the <Cost> element.

The SIF specification defines the meaning of this element as: "The cost (dollar value) of the item sold."

Returns:
The Cost element of this object.
Since:
1.5r1

setCost

public void setCost(java.math.BigDecimal value)
Sets the value of the <Cost> element.

The SIF specification defines the meaning of this element as: "The cost (dollar value) of the item sold."

Parameters:
value - A BigDecimal object
Since:
1.5r1


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.