|
||||||||||
| 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.SIFDataObject
com.edustructures.sifworks.food.StaffMeal
public class StaffMeal
This object communicates the current meal status and account status of a given staff member. This object indicates whether the staff member is entitled to earn meals. This object will respond to a change event and propagate the new information to subscribing agents. SIF_Events, typically Change events, can be reported.
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
StaffMeal()
Constructor |
|
StaffMeal(java.lang.String staffPersonalRefId,
EarnedStatus earnedStatus,
java.util.Calendar lastBreakfastDate,
java.util.Calendar lastLunchDate)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
FSAmounts |
getAmounts()
Gets the value of the <Amounts> 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 |
java.util.Calendar |
getLastBreakfastDate()
Gets the value of the <LastBreakfastDate> element. |
java.util.Calendar |
getLastLunchDate()
Gets the value of the <LastLunchDate> element. |
java.lang.String |
getStaffPersonalRefId()
Gets the value of the StaffPersonalRefId attribute. |
void |
removeAmounts()
Removes the Amounts child element previously created by calling setAmounts |
void |
removeEarnedStatus()
Removes the EarnedStatus child element previously created by calling setEarnedStatus |
void |
setAmounts(FSAmounts value)
Sets the value of the <Amounts> 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 |
setLastBreakfastDate(java.util.Calendar value)
Sets the value of the <LastBreakfastDate> element. |
void |
setLastLunchDate(java.util.Calendar value)
Sets the value of the <LastLunchDate> element. |
void |
setStaffPersonalRefId(java.lang.String value)
Sets the value of the StaffPersonalRefId attribute. |
| Methods inherited from class com.edustructures.sifworks.SIFDataObject |
|---|
addSIFExtendedElement, clone, getElementOrAttribute, getObjectTag, getObjectType, getRefId, getSIFExtendedElement, getSIFExtendedElements, getSIFExtendedElementsContainer, getSIFMetadata, getSIFVersion, setElementOrAttribute, setElementOrAttribute, setElementOrAttribute, setSIFExtendedElements, setSIFExtendedElementsContainer, setSIFMetadata, setSIFVersion, toXML |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getSIFValue, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, 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 StaffMeal()
public StaffMeal(java.lang.String staffPersonalRefId,
EarnedStatus earnedStatus,
java.util.Calendar lastBreakfastDate,
java.util.Calendar lastLunchDate)
staffPersonalRefId - The GUID of the staff to whom this object is linked.earnedStatus - This gives information about a staff member's meal status.lastBreakfastDate - Last breakfast served datelastLunchDate - Last lunch served date| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getStaffPersonalRefId()
StaffPersonalRefId attribute.
The SIF specification defines the meaning of this attribute as: "The GUID of the staff to whom this object is linked."
StaffPersonalRefId attribute of this object.public void setStaffPersonalRefId(java.lang.String value)
StaffPersonalRefId attribute.
The SIF specification defines the meaning of this attribute as: "The GUID of the staff to whom this object is linked."
value - A String objectpublic void setEarnedStatus(EarnedStatus value)
<EarnedStatus> element.
The SIF specification defines the meaning of this element as: "This gives information about a staff member's 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: "This gives information about a staff member's meal status."
EarnedStatus objectpublic void removeEarnedStatus()
EarnedStatus child element previously created by calling setEarnedStatus
public java.util.Calendar getLastBreakfastDate()
<LastBreakfastDate> element.
The SIF specification defines the meaning of this element as: "Last breakfast served date"
LastBreakfastDate element of this object.public void setLastBreakfastDate(java.util.Calendar value)
<LastBreakfastDate> element.
The SIF specification defines the meaning of this element as: "Last breakfast served date"
value - A Calendar objectpublic java.util.Calendar getLastLunchDate()
<LastLunchDate> element.
The SIF specification defines the meaning of this element as: "Last lunch served date"
LastLunchDate element of this object.public void setLastLunchDate(java.util.Calendar value)
<LastLunchDate> element.
The SIF specification defines the meaning of this element as: "Last lunch served date"
value - A Calendar objectpublic void setAmounts(FSAmounts value)
<Amounts> element.
value - A FSAmounts objectpublic FSAmounts getAmounts()
<Amounts> element.
FSAmounts objectpublic void removeAmounts()
Amounts child element previously created by calling setAmounts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||