|
||||||||||
| 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.PurchaseQuantity
public class PurchaseQuantity
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
PurchaseQuantity()
Constructor |
|
PurchaseQuantity(java.lang.String foodserviceItemPortionRefId,
YesNo earned,
MealTypes mealType,
java.math.BigDecimal value)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getEarned()
Gets the value of the Earned attribute. |
java.lang.String |
getFoodserviceItemPortionRefId()
Gets the value of the FoodserviceItemPortionRefId attribute. |
java.lang.String |
getKey()
Gets the key of this object |
ElementDef[] |
getKeyFields()
Gets the metadata fields that make up the key of this object |
java.lang.String |
getMealType()
Gets the value of the <MealType> element. |
java.math.BigDecimal |
getValue()
Gets the value of the <Value> element. |
void |
setEarned(java.lang.String value)
Sets the value of the Earned attribute as a String. |
void |
setEarned(YesNo value)
Sets the value of the Earned attribute. |
void |
setFoodserviceItemPortionRefId(java.lang.String value)
Sets the value of the FoodserviceItemPortionRefId attribute. |
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> 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, 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 PurchaseQuantity()
public PurchaseQuantity(java.lang.String foodserviceItemPortionRefId,
YesNo earned,
MealTypes mealType,
java.math.BigDecimal value)
foodserviceItemPortionRefId - Item portion amountearned - Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase".mealType - value - | Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getFoodserviceItemPortionRefId()
FoodserviceItemPortionRefId attribute.
The SIF specification defines the meaning of this attribute as: "Item portion amount"
FoodserviceItemPortionRefId attribute of this object.public void setFoodserviceItemPortionRefId(java.lang.String value)
FoodserviceItemPortionRefId attribute.
The SIF specification defines the meaning of this attribute as: "Item portion amount"
value - A String objectpublic java.lang.String getEarned()
Earned attribute.
The SIF specification defines the meaning of this attribute as: "Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase"."
Earned attribute of this object.public void setEarned(YesNo value)
Earned attribute.
The SIF specification defines the meaning of this attribute as: "Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase"."
value - A constant defined by the YesNo classpublic void setEarned(java.lang.String value)
Earned attribute as a String.
The SIF specification defines the meaning of this attribute as: "Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase"."
value - The value as a Stringpublic 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 java.math.BigDecimal getValue()
<Value> element.
Value element of this object.public void setValue(java.math.BigDecimal value)
<Value> element.
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||