com.ail.insurance.policy
Class Contract

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.insurance.policy.Contract
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Contract
extends Type

A contract collects a group of policy objects together into a larger unit.

Version:
$Revision: 1.3 $
See Also:
Serialized Form

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

Contract

public Contract()
Method Detail

getPolicy

public java.util.Collection<Policy> getPolicy()
Get the collection of instances of com.ail.insurance.policy.Policy associated with this object.

Returns:
policy A collection of instances of Excess
See Also:
setPolicy(java.util.Collection)

setPolicy

public void setPolicy(java.util.Collection<Policy> policy)
Set the collection of instances of com.ail.insurance.policy.Policy associated with this object.

Parameters:
policy - A collection of instances of Excess
See Also:
getPolicy()

getPolicyCount

public int getPolicyCount()
Get a count of the number of com.ail.insurance.policy.Policy instances associated with this object

Returns:
Number of instances

getPolicy

public Policy getPolicy(int i)
Fetch a spacific com.ail.insurance.policy.Policy from the collection by index number.

Parameters:
i - Index of element to return

removePolicy

public void removePolicy(int i)
Remove the element specified from the list.

Parameters:
i - Index of element to remove

removePolicy

public void removePolicy(Policy policy)
Remove the specified instance of com.ail.insurance.policy.Policy from the list.

Parameters:
policy - Instance to be removed

addPolicy

public void addPolicy(Policy policy)
Add an instance of com.ail.insurance.policy.Policy to the list associated with this object.

Parameters:
policy - Instance to add to list

getCompany

public Organisation getCompany()
Getter returning the value of the company property. The company

Returns:
Value of the company property

setCompany

public void setCompany(Organisation company)
Setter to update the value of the company property. The company

Parameters:
company - New value for the company property

getStartDate

public java.util.Date getStartDate()
Getter returning the value of the startDate property. The Date at which the contract comes into force.

Returns:
Value of the startDate property

setStartDate

public void setStartDate(java.util.Date startDate)
Setter to update the value of the startDate property. The Date at which the contract comes into force.

Parameters:
startDate - New value for the startDate property

getEndDate

public java.util.Date getEndDate()
Getter returning the value of the endDate property. The date when the contract ceases to be in force.

Returns:
Value of the endDate property

setEndDate

public void setEndDate(java.util.Date endDate)
Setter to update the value of the endDate property. The date when the contract ceases to be in force.

Parameters:
endDate - New value for the endDate property

getClient

public Party getClient()
Getter returning the value of the client property. description

Returns:
Value of the client property

setClient

public void setClient(Party client)
Setter to update the value of the client property. description

Parameters:
client - New value for the client property

getFinancialAmount

public MoneyProvision getFinancialAmount()
Getter returning the value of the financialAmount property. The financial amount associated with this contract

Returns:
Value of the financialAmount property

setFinancialAmount

public void setFinancialAmount(MoneyProvision financialAmount)
Setter to update the value of the financialAmount property. The financial amount associated with this contract

Parameters:
financialAmount - New value for the financialAmount property