|
||||||||||
| 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.library.FineInfo
public class FineInfo
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
FineInfo()
Constructor |
|
FineInfo(FineType type,
java.util.Calendar assessed,
java.math.BigDecimal amount)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getAmount()
Gets the value of the <Amount> element. |
java.util.Calendar |
getAssessed()
Gets the value of the <Assessed> element. |
java.lang.String |
getDescription()
Gets the value of the <Description> 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.lang.String |
getReference()
Gets the value of the <Reference> element. |
java.lang.String |
getType()
Gets the value of the Type attribute. |
void |
setAmount(java.math.BigDecimal value)
Sets the value of the <Amount> element. |
void |
setAssessed(java.util.Calendar value)
Sets the value of the <Assessed> element. |
void |
setDescription(java.lang.String value)
Sets the value of the <Description> element. |
void |
setReference(java.lang.String value)
Sets the value of the <Reference> element. |
void |
setType(FineType value)
Sets the value of the Type attribute. |
void |
setType(java.lang.String value)
Sets the value of the Type attribute as a String. |
| 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 FineInfo()
public FineInfo(FineType type,
java.util.Calendar assessed,
java.math.BigDecimal amount)
type - Type of fine assessed to this patron and item. A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine.assessed - The date and time that this fine was assessed to the patron.amount - The current balance of the fine expressed as a positive number.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getType()
Type attribute.
The SIF specification defines the meaning of this attribute as: "Type of fine assessed to this patron and item. A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine."
Type attribute of this object.public void setType(FineType value)
Type attribute.
The SIF specification defines the meaning of this attribute as: "Type of fine assessed to this patron and item. A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine."
value - A constant defined by the FineType classpublic void setType(java.lang.String value)
Type attribute as a String.
The SIF specification defines the meaning of this attribute as: "Type of fine assessed to this patron and item. A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine."
value - The value as a Stringpublic java.util.Calendar getAssessed()
<Assessed> element.
The SIF specification defines the meaning of this element as: "The date and time that this fine was assessed to the patron."
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.1 | "Date" |
| SIF2.0 | "Assessed" |
Assessed element of this object.public void setAssessed(java.util.Calendar value)
<Assessed> element.
The SIF specification defines the meaning of this element as: "The date and time that this fine was assessed to the patron."
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.1 | "Date" |
| SIF2.0 | "Assessed" |
value - A Calendar objectpublic java.lang.String getDescription()
<Description> element.
The SIF specification defines the meaning of this element as: "More detailed information concerning the assessed fine or refund."
Description element of this object.public void setDescription(java.lang.String value)
<Description> element.
The SIF specification defines the meaning of this element as: "More detailed information concerning the assessed fine or refund."
value - A String objectpublic java.math.BigDecimal getAmount()
<Amount> element.
The SIF specification defines the meaning of this element as: "The current balance of the fine expressed as a positive number. "
Amount element of this object.public void setAmount(java.math.BigDecimal value)
<Amount> element.
The SIF specification defines the meaning of this element as: "The current balance of the fine expressed as a positive number. "
value - A BigDecimal objectpublic java.lang.String getReference()
<Reference> element.
The SIF specification defines the meaning of this element as: "An application-specific reference identifier for the fine being assessed, paid, or refunded. It is intended to identify a specific fine transaction allowing consumers to include this information in Billing or Payment events sent to the library application."
Reference element of this object.public void setReference(java.lang.String value)
<Reference> element.
The SIF specification defines the meaning of this element as: "An application-specific reference identifier for the fine being assessed, paid, or refunded. It is intended to identify a specific fine transaction allowing consumers to include this information in Billing or Payment events sent to the library application."
value - A String object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||