|
||||||||||
| 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.Count
public class Count
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
Count()
Constructor |
|
Count(java.math.BigDecimal value)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
FSAmount |
getAmount()
Gets the value of the <Amount> element. |
EarnedStatus |
getEarnedStatus()
Gets the value of the <EarnedStatus> 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 |
getTax()
Gets the value of the <Tax> element. |
java.math.BigDecimal |
getValue()
Gets the value of the <Value> element. |
void |
removeAmount()
Removes the Amount child element previously created by calling setAmount |
void |
removeEarnedStatus()
Removes the EarnedStatus child element previously created by calling setEarnedStatus |
void |
removeMealStatus()
Removes the MealStatus child element previously created by calling setMealStatus |
void |
setAmount(FSAmount value)
Sets the value of the <Amount> element. |
void |
setAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
Sets the value of the <Amount> child element. |
void |
setEarnedStatus(EarnedStatus value)
Sets the value of the <EarnedStatus> element. |
void |
setEarnedStatus(YesNoNA type)
Sets the value of the <EarnedStatus> child 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 |
setTax(java.math.BigDecimal value)
Sets the value of the <Tax> 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, 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 Count()
public Count(java.math.BigDecimal value)
value - The value of the count.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public void setMealStatus(MealStatus value)
<MealStatus> element.
The SIF specification defines the meaning of this element as: "Student meal status. If a meal status applies, either MealStatus (for students), or EarnedStatus (for staff) is specified."
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: "Student meal status. If a meal status applies, either MealStatus (for students), or EarnedStatus (for staff) is specified."
MealStatus objectpublic void removeMealStatus()
MealStatus child element previously created by calling setMealStatus
public void setEarnedStatus(EarnedStatus value)
<EarnedStatus> element.
The SIF specification defines the meaning of this element as: "Staff meal status."
value - A EarnedStatus objectpublic void setEarnedStatus(YesNoNA type)
<EarnedStatus> child element.
This form of setEarnedStatus is provided as a convenience method
that is functionally equivalent to the version of setEarnedStatus
that accepts a single EarnedStatus object.
type - Earned status type.public EarnedStatus getEarnedStatus()
<EarnedStatus> element.
The SIF specification defines the meaning of this element as: "Staff meal status."
EarnedStatus objectpublic void removeEarnedStatus()
EarnedStatus child element previously created by calling setEarnedStatus
public 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 setAmount(FSAmount value)
<Amount> element.
value - A FSAmount object
public void setAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
<Amount> child element.
This form of setAmount is provided as a convenience method
that is functionally equivalent to the version of setAmount
that accepts a single FSAmount object.
type - Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable.credits - Number of credits. This attribute does not apply to Cash or Value
and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit.value - Gets or sets the content value of the <FSAmount> elementpublic FSAmount getAmount()
<Amount> element.
FSAmount objectpublic void removeAmount()
Amount child element previously created by calling setAmount
public java.math.BigDecimal getTax()
<Tax> element.
The SIF specification defines the meaning of this element as: "Dollar value of tax collected."
Tax element of this object.public void setTax(java.math.BigDecimal value)
<Tax> element.
The SIF specification defines the meaning of this element as: "Dollar value of tax collected."
value - A BigDecimal objectpublic java.math.BigDecimal getValue()
<Value> element.
The SIF specification defines the meaning of this element as: "The value of the count."
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 the count."
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||