|
||||||||||
| 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.FoodserviceTransaction
public class FoodserviceTransaction
This object communicates food service transaction information. This is the key object that will be present for every food service transaction. SIF_Events are reported.
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
FoodserviceTransaction()
Constructor |
|
FoodserviceTransaction(java.lang.String refId,
java.lang.String schoolInfoRefId,
Program program,
java.util.Calendar transactionDate,
java.util.Calendar transactionTime,
Customer customer,
FSAmount fsAmount,
YesNo voided)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
FSAmount |
getAmount()
Gets the value of the <Amount> element. |
Customer |
getCustomer()
Gets the value of the <Customer> element. |
java.lang.String |
getDescription()
Gets the value of the <Description> element. |
FSAmount |
getFSAmount()
Gets the value of the <FSAmount> 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 |
Program |
getProgram()
Gets the value of the <Program> element. |
java.lang.String |
getRefId()
Gets the value of the RefId attribute. |
java.lang.String |
getSchoolInfoRefId()
Gets the value of the <SchoolInfoRefId> element. |
java.math.BigDecimal |
getTax()
Gets the value of the <Tax> element. |
java.util.Calendar |
getTransactionDate()
Gets the value of the <TransactionDate> element. |
java.util.Calendar |
getTransactionTime()
Gets the value of the <TransactionTime> element. |
TransactionTypes |
getTransactionTypes()
Gets the value of the <TransactionTypes> element. |
java.lang.String |
getVoided()
Gets the value of the <Voided> element. |
void |
removeAmount()
Removes the Amount child element previously created by calling setAmount |
void |
removeCustomer()
Removes the Customer child element previously created by calling setCustomer |
void |
removeFSAmount()
Removes the FSAmount child element previously created by calling setFSAmount |
void |
removeProgram()
Removes the Program child element previously created by calling setProgram |
void |
removeTransactionTypes()
Removes the TransactionTypes child element previously created by calling setTransactionTypes |
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 |
setCustomer(Customer value)
Sets the value of the <Customer> element. |
void |
setCustomer(java.lang.String sifRefId,
CustomerObjectName sifRefObject)
Sets the value of the <Customer> child element. |
void |
setDescription(java.lang.String value)
Sets the value of the <Description> element. |
void |
setFSAmount(FSAmount value)
Sets the value of the <FSAmount> element. |
void |
setFSAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
Sets the value of the <FSAmount> child element. |
void |
setProgram(FinancialProgram type,
java.lang.String value)
Sets the value of the <Program> child element. |
void |
setProgram(Program value)
Sets the value of the <Program> element. |
void |
setRefId(java.lang.String value)
Sets the value of the RefId attribute. |
void |
setSchoolInfoRefId(java.lang.String value)
Sets the value of the <SchoolInfoRefId> element. |
void |
setTax(java.math.BigDecimal value)
Sets the value of the <Tax> element. |
void |
setTransactionDate(java.util.Calendar value)
Sets the value of the <TransactionDate> element. |
void |
setTransactionTime(java.util.Calendar value)
Sets the value of the <TransactionTime> element. |
void |
setTransactionTypes(TransactionTypes value)
Sets the value of the <TransactionTypes> element. |
void |
setVoided(java.lang.String value)
Sets the value of the <Voided> element as a String. |
void |
setVoided(YesNo value)
Sets the value of the <Voided> element. |
| Methods inherited from class com.edustructures.sifworks.SIFDataObject |
|---|
addSIFExtendedElement, clone, getElementOrAttribute, getObjectTag, getObjectType, 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 FoodserviceTransaction()
public FoodserviceTransaction(java.lang.String refId,
java.lang.String schoolInfoRefId,
Program program,
java.util.Calendar transactionDate,
java.util.Calendar transactionTime,
Customer customer,
FSAmount fsAmount,
YesNo voided)
refId - GUID that identifies food service transactionschoolInfoRefId - GUID that identifies the school/site of account transactionprogram - Program. For a description of this element, see 5.1.23 Program.transactionDate - Date of transactiontransactionTime - Time of transaction.customer - The customer doing the transaction. The customer can be student, staff or any other person.fsAmount - Amount.voided - This flag tells us if the transaction is voided.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getRefId()
RefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies food service transaction"
getRefId in class SIFDataObjectRefId attribute of this object.public void setRefId(java.lang.String value)
RefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies food service transaction"
value - A String objectpublic java.lang.String getSchoolInfoRefId()
<SchoolInfoRefId> element.
The SIF specification defines the meaning of this element as: "GUID that identifies the school/site of account transaction"
SchoolInfoRefId element of this object.public void setSchoolInfoRefId(java.lang.String value)
<SchoolInfoRefId> element.
The SIF specification defines the meaning of this element as: "GUID that identifies the school/site of account transaction"
value - A String objectpublic void setProgram(Program value)
<Program> element.
The SIF specification defines the meaning of this element as: "Program. For a description of this element, see 5.1.23 Program."
value - A Program object
public void setProgram(FinancialProgram type,
java.lang.String value)
<Program> child element.
This form of setProgram is provided as a convenience method
that is functionally equivalent to the version of setProgram
that accepts a single Program object.
type - The type of the program. Type identifies the list of values.value - Gets or sets the content value of the <Program> elementpublic Program getProgram()
<Program> element.
The SIF specification defines the meaning of this element as: "Program. For a description of this element, see 5.1.23 Program."
Program objectpublic void removeProgram()
Program child element previously created by calling setProgram
public java.util.Calendar getTransactionDate()
<TransactionDate> element.
The SIF specification defines the meaning of this element as: "Date of transaction"
TransactionDate element of this object.public void setTransactionDate(java.util.Calendar value)
<TransactionDate> element.
The SIF specification defines the meaning of this element as: "Date of transaction"
value - A Calendar objectpublic java.util.Calendar getTransactionTime()
<TransactionTime> element.
The SIF specification defines the meaning of this element as: "Time of transaction."
TransactionTime element of this object.public void setTransactionTime(java.util.Calendar value)
<TransactionTime> element.
The SIF specification defines the meaning of this element as: "Time of transaction."
value - A Calendar objectpublic void setTransactionTypes(TransactionTypes value)
<TransactionTypes> element.
value - A TransactionTypes objectpublic TransactionTypes getTransactionTypes()
<TransactionTypes> element.
TransactionTypes objectpublic void removeTransactionTypes()
TransactionTypes child element previously created by calling setTransactionTypes
public void setCustomer(Customer value)
<Customer> element.
The SIF specification defines the meaning of this element as: "The customer doing the transaction. The customer can be student, staff or any other person."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.5r1 | "FSCustomerId" |
| SIF2.0 | "Customer" |
value - A Customer object
public void setCustomer(java.lang.String sifRefId,
CustomerObjectName sifRefObject)
<Customer> child element.
This form of setCustomer is provided as a convenience method
that is functionally equivalent to the version of setCustomer
that accepts a single Customer object.
sifRefId - GUID of the SIF customer type.sifRefObject - SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included.public Customer getCustomer()
<Customer> element.
The SIF specification defines the meaning of this element as: "The customer doing the transaction. The customer can be student, staff or any other person."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.5r1 | "FSCustomerId" |
| SIF2.0 | "Customer" |
Customer objectpublic void removeCustomer()
Customer child element previously created by calling setCustomer
public void setFSAmount(FSAmount value)
<FSAmount> element.
The SIF specification defines the meaning of this element as: "Amount."
value - A FSAmount object
public void setFSAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
<FSAmount> child element.
This form of setFSAmount is provided as a convenience method
that is functionally equivalent to the version of setFSAmount
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 getFSAmount()
<FSAmount> element.
The SIF specification defines the meaning of this element as: "Amount."
FSAmount objectpublic void removeFSAmount()
FSAmount child element previously created by calling setFSAmount
public 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: "Amount of tax."
Tax element of this object.public void setTax(java.math.BigDecimal value)
<Tax> element.
The SIF specification defines the meaning of this element as: "Amount of tax."
value - A BigDecimal objectpublic java.lang.String getDescription()
<Description> element.
The SIF specification defines the meaning of this element as: "Description of the Transaction"
Description element of this object.public void setDescription(java.lang.String value)
<Description> element.
The SIF specification defines the meaning of this element as: "Description of the Transaction"
value - A String objectpublic java.lang.String getVoided()
<Voided> element.
The SIF specification defines the meaning of this element as: "This flag tells us if the transaction is voided."
Voided element of this object.public void setVoided(YesNo value)
<Voided> element.
The SIF specification defines the meaning of this element as: "This flag tells us if the transaction is voided."
value - A constant defined by the YesNo classpublic void setVoided(java.lang.String value)
<Voided> element as a String.
The SIF specification defines the meaning of this element as: "This flag tells us if the transaction is voided."
value - The value as a String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||