|
||||||||||
| 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.SIFList<T>
com.edustructures.sifworks.SIFKeyedList<FSAmount>
com.edustructures.sifworks.food.FSAmounts
public class FSAmounts
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
FSAmounts()
Constructor |
|
FSAmounts(FSAmount amount)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
void |
addAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
Adds a new <Amount> repeatable element. |
FSAmount |
getAmount(java.lang.String value)
Gets a FSAmount object instance. |
FSAmount[] |
getAmounts()
Gets all FSAmount object instances. |
void |
removeAmount(java.lang.String value)
Removes a FSAmount object instance. |
void |
setAmounts(FSAmount[] amounts)
Sets an array of FSAmount objects. |
| Methods inherited from class com.edustructures.sifworks.SIFKeyedList |
|---|
getChild, getChild |
| Methods inherited from class com.edustructures.sifworks.SIFList |
|---|
add, addAll, clear, contains, containsAll, get, iterator, remove, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getKey, 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 |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, isEmpty |
| Constructor Detail |
|---|
public FSAmounts()
public FSAmounts(FSAmount amount)
amount - | Method Detail |
|---|
public void addAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
<Amount> repeatable 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 void removeAmount(java.lang.String value)
FSAmount object instance. More than one instance can be defined for this object because it is a repeatable field element.
value - Identifies the FSAmount object to remove by its Value valuepublic FSAmount getAmount(java.lang.String value)
FSAmount object instance. More than one instance can be defined for this object because it is a repeatable field element.
value - Identifies the FSAmount object to return by its "Value" attribute value
FSAmount objectpublic FSAmount[] getAmounts()
FSAmount object instances. More than one instance can be defined for this object because it is a repeatable field element.
FSAmount objectspublic void setAmounts(FSAmount[] amounts)
FSAmount objects. All existing
FSAmount instances
are removed and replaced with this list. Calling this method with the
parameter value set to null removes all FSAmounts.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||