|
||||||||||
| 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.SIFKeyedElement
com.edustructures.sifworks.food.Price
public class Price
Price of the meal
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
Price()
Constructor |
|
Price(java.math.BigDecimal value,
MealStatus mealStatus,
MealTypes mealType,
GradeLevels gradeLevels)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
GradeLevels |
getGradeLevels()
Gets the value of the <GradeLevels> element. |
java.lang.String |
getKey()
Gets the key of this object |
ElementDef[] |
getKeyFields()
Gets the metadata fields that make up the key of this object |
MealStatus |
getMealStatus()
Gets the value of the <MealStatus> 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 |
removeMealStatus()
Removes the MealStatus child element previously created by calling setMealStatus |
void |
setGradeLevels(GradeLevels value)
Sets the value of the <GradeLevels> 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 |
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, 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 Price()
public Price(java.math.BigDecimal value,
MealStatus mealStatus,
MealTypes mealType,
GradeLevels gradeLevels)
value - The price valuemealStatus - This gives information about a student's meal status.mealType - This gives information about a meal typegradeLevels - Refer to section 5.1.12 GradeLevels.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.math.BigDecimal getValue()
Value attribute.
The SIF specification defines the meaning of this attribute as: "The price value"
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 price value"
value - A BigDecimal objectpublic void setMealStatus(MealStatus value)
<MealStatus> element.
The SIF specification defines the meaning of this element as: "This gives information about a student's meal status."
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.
The SIF specification defines the meaning of this element as: "This gives information about a student's meal status."
MealStatus objectpublic void removeMealStatus()
MealStatus child element previously created by calling setMealStatus
public java.lang.String getMealType()
<MealType> element.
The SIF specification defines the meaning of this element as: "This gives information about a meal type"
MealType element of this object.public void setMealType(MealTypes value)
<MealType> element.
The SIF specification defines the meaning of this element as: "This gives information about a meal type"
value - A constant defined by the MealTypes classpublic void setMealType(java.lang.String value)
<MealType> element as a String.
The SIF specification defines the meaning of this element as: "This gives information about a meal type"
value - The value as a Stringpublic void setGradeLevels(GradeLevels value)
<GradeLevels> element.
The SIF specification defines the meaning of this element as: "Refer to section 5.1.12 GradeLevels."
value - A GradeLevels objectpublic GradeLevels getGradeLevels()
<GradeLevels> element.
The SIF specification defines the meaning of this element as: "Refer to section 5.1.12 GradeLevels."
GradeLevels objectpublic void removeGradeLevels()
GradeLevels child element previously created by calling setGradeLevels
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||