|
||||||||||
| 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.FSAmount
public class FSAmount
Amount
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
FSAmount()
Constructor |
|
FSAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getCredits()
Gets the value of the Credits attribute. |
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.lang.String |
getType()
Gets the value of the Type attribute. |
java.lang.String |
getValue()
Gets the value of the <Value> element. |
void |
setCredits(java.math.BigDecimal value)
Sets the value of the Credits attribute. |
void |
setType(FSAmountType value)
Sets the value of the Type attribute. |
void |
setType(java.lang.String value)
Sets the value of the Type attribute as a String. |
void |
setValue(java.lang.String 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 FSAmount()
public FSAmount(FSAmountType type,
java.math.BigDecimal credits,
java.lang.String value)
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> element| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getValue()
<Value> element.
The SIF specification defines the meaning of this element as: "Gets or sets the content value of the <FSAmount> element"
Value element of this object.public void setValue(java.lang.String value)
<Value> element.
The SIF specification defines the meaning of this element as: "Gets or sets the content value of the <FSAmount> element"
value - A String objectpublic java.lang.String getType()
Type attribute.
The SIF specification defines the meaning of this attribute as: " 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. "
Type attribute of this object.public void setType(FSAmountType value)
Type attribute.
The SIF specification defines the meaning of this attribute as: " 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. "
value - A constant defined by the FSAmountType classpublic void setType(java.lang.String value)
Type attribute as a String.
The SIF specification defines the meaning of this attribute as: " 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. "
value - The value as a Stringpublic java.math.BigDecimal getCredits()
Credits attribute.
The SIF specification defines the meaning of this attribute as: " 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. "
This attribute 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 attributes of this kind.
| Version | Tag |
| 1.5r1 | "Quantity" |
| SIF2.0 | "Credits" |
Credits attribute of this object.public void setCredits(java.math.BigDecimal value)
Credits attribute.
The SIF specification defines the meaning of this attribute as: " 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. "
This attribute 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 attributes of this kind.
| Version | Tag |
| 1.5r1 | "Quantity" |
| SIF2.0 | "Credits" |
value - A BigDecimal object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||