|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.insurance.policy.Contract
public class Contract
A contract collects a group of policy objects together into a larger unit.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
Contract()
|
|
| Method Summary | |
|---|---|
void |
addPolicy(Policy policy)
Add an instance of com.ail.insurance.policy.Policy to the list associated with this object. |
Party |
getClient()
Getter returning the value of the client property. |
Organisation |
getCompany()
Getter returning the value of the company property. |
java.util.Date |
getEndDate()
Getter returning the value of the endDate property. |
MoneyProvision |
getFinancialAmount()
Getter returning the value of the financialAmount property. |
java.util.Collection<Policy> |
getPolicy()
Get the collection of instances of com.ail.insurance.policy.Policy associated with this object. |
Policy |
getPolicy(int i)
Fetch a spacific com.ail.insurance.policy.Policy from the collection by index number. |
int |
getPolicyCount()
Get a count of the number of com.ail.insurance.policy.Policy instances associated with this object |
java.util.Date |
getStartDate()
Getter returning the value of the startDate property. |
void |
removePolicy(int i)
Remove the element specified from the list. |
void |
removePolicy(Policy policy)
Remove the specified instance of com.ail.insurance.policy.Policy from the list. |
void |
setClient(Party client)
Setter to update the value of the client property. |
void |
setCompany(Organisation company)
Setter to update the value of the company property. |
void |
setEndDate(java.util.Date endDate)
Setter to update the value of the endDate property. |
void |
setFinancialAmount(MoneyProvision financialAmount)
Setter to update the value of the financialAmount property. |
void |
setPolicy(java.util.Collection<Policy> policy)
Set the collection of instances of com.ail.insurance.policy.Policy associated with this object. |
void |
setStartDate(java.util.Date startDate)
Setter to update the value of the startDate 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 Contract()
| Method Detail |
|---|
public java.util.Collection<Policy> getPolicy()
setPolicy(java.util.Collection) public void setPolicy(java.util.Collection<Policy> policy)
policy - A collection of instances of ExcessgetPolicy()public int getPolicyCount()
public Policy getPolicy(int i)
i - Index of element to returnpublic void removePolicy(int i)
i - Index of element to removepublic void removePolicy(Policy policy)
policy - Instance to be removedpublic void addPolicy(Policy policy)
policy - Instance to add to listpublic Organisation getCompany()
public void setCompany(Organisation company)
company - New value for the company propertypublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate - New value for the startDate propertypublic java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate - New value for the endDate propertypublic Party getClient()
public void setClient(Party client)
client - New value for the client propertypublic MoneyProvision getFinancialAmount()
public void setFinancialAmount(MoneyProvision financialAmount)
financialAmount - New value for the financialAmount property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||