|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.financial.MoneyProvision
public class MoneyProvision
MoneyProvision objects represents an amount of money that is payable or due from one party to another party. It may be a single payment, or a number of payments of an identical amount at a frequency.
For example it may represent:-
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
MoneyProvision()
Default constructor |
|
MoneyProvision(int number,
CurrencyAmount amount,
FinancialFrequency frequency,
PaymentMethod paymentMethod,
java.util.Date paymentsStartDate,
java.util.Date paymentsEndDate,
java.lang.String description)
|
|
| Method Summary | |
|---|---|
CurrencyAmount |
calculateTotal()
Calculate the total value of this provision assuming that all payments were made. |
CurrencyAmount |
getAmount()
Getter returning the value of the amount property. |
java.lang.String |
getDescription()
Getter returning the value of the description property. |
FinancialFrequency |
getFrequency()
Getter returning the value of the frequency property. |
java.lang.String |
getFrequencyAsString()
Get the value of the frequency property as a string (as opposed to an instance of FinancialFrequency). |
int |
getNumber()
|
PaymentMethod |
getPaymentMethod()
|
java.util.Date |
getPaymentsEndDate()
Getter returning the value of the paymentsEndDate property. |
java.util.Date |
getPaymentsStartDate()
Getter returning the value of the paymentsStartDate property. |
void |
setAmount(CurrencyAmount amount)
Setter to update the value of the amount property. |
void |
setDescription(java.lang.String description)
Setter to update the value of the description property. |
void |
setFrequency(FinancialFrequency frequency)
Setter to update the value of the frequency property. |
void |
setFrequencyAsString(java.lang.String frequency)
Set the frequency property as a String. |
void |
setNumber(int number)
|
void |
setPaymentMethod(PaymentMethod paymentMethod)
|
void |
setPaymentsEndDate(java.util.Date paymentsEndDate)
Setter to update the value of the paymentsEndDate property. |
void |
setPaymentsStartDate(java.util.Date paymentsStartDate)
Setter to update the value of the paymentsStartDate property. |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoneyProvision()
public MoneyProvision(int number,
CurrencyAmount amount,
FinancialFrequency frequency,
PaymentMethod paymentMethod,
java.util.Date paymentsStartDate,
java.util.Date paymentsEndDate,
java.lang.String description)
number - The number of payments to be made.amount - The amount of each payment (all are equal).frequency - The frequency of payments (Monthly, Weekly, etc).paymentMethod - The method e.g. payment card, direct debit, etc.paymentsStartDate - The date when payments start.paymentsEndDate - The date when payments end.description - Any textual description.| Method Detail |
|---|
public CurrencyAmount getAmount()
public void setAmount(CurrencyAmount amount)
amount - New value for the amount propertypublic java.util.Date getPaymentsStartDate()
public void setPaymentsStartDate(java.util.Date paymentsStartDate)
paymentsStartDate - New value for the paymentsStartDate propertypublic java.util.Date getPaymentsEndDate()
public void setPaymentsEndDate(java.util.Date paymentsEndDate)
paymentsEndDate - New value for the paymentsEndDate propertypublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - New value for the description propertypublic FinancialFrequency getFrequency()
public void setFrequency(FinancialFrequency frequency)
frequency - New value for the frequency propertypublic java.lang.String getFrequencyAsString()
public void setFrequencyAsString(java.lang.String frequency)
throws java.lang.IndexOutOfBoundsException
frequency - New value for property.
java.lang.IndexOutOfBoundsException - If frequency is not a valid FinancialFrequency.public PaymentMethod getPaymentMethod()
public void setPaymentMethod(PaymentMethod paymentMethod)
public int getNumber()
public void setNumber(int number)
public CurrencyAmount calculateTotal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||