com.ail.insurance.policy
Class Policy

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

public class Policy
extends Type

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

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
Policy()
           
 
Method Summary
 void addAllowable(Allowable allowable)
          Add an instance of com.ail.core.Allowable to the list associated with this object.
 void addAsset(Asset asset)
          Add a asset to the collection associated with this object.
 void addCoverage(Coverage coverage)
          Add a coverage to the list associated with this policy.
 void addExcess(Excess excess)
          Add a excess to the collection associated with this object.
 void addSection(Section section)
          Add a section to the collection associated with this policy.
 void addWording(Wording wording)
          Add an instance of com.ail.insurance.policy.Wording to the list associated with this object.
 java.util.List<Allowable> getAllowable()
          Get the collection of instances of com.ail.core.Allowable associated with this object.
 Allowable getAllowable(int i)
          Fetch a spacific com.ail.core.Allowable from the collection by index number.
 int getAllowableCount()
          Get a count of the number of com.ail.core.Allowable instances associated with this object
 AssessmentSheet getAssessmentSheet()
          Get the AssessmentSheet associated with this policy.
 java.util.List<Asset> getAsset()
          Fetch the collection of asset objects associated with this instance.
 Asset getAsset(int i)
          Get the instance of asset at a specific index from the collection of Asset objects associated with this instance.
 Asset getAssetById(java.lang.String id)
          Fetch a reference to an asset by its ID.
 java.util.List<Asset> getAssetBySectionId(java.lang.String sectionId)
          Fetch a collection of the assets associated with a specific section.
 java.util.List<Asset> getAssetByTypeId(java.lang.String typeId)
          Fetch a collection of reference to assets of a specific type in this policy.
 int getAssetCount()
          Fetch a count of the number of asset objects associated with this instance.
 java.util.List<Coverage> getCoverage()
          Get the collection of Coverages associagted with this policy.
 Coverage getCoverage(int i)
          Get the Coverage at a specific index in the collection associated with this policy.
 Coverage getCoverageById(java.lang.String coverageId)
          Fetch the coverage with a specific id from the collection associated with this policy.
 int getCoverageCount()
          Get the number of Coverages associated with this policy.
 java.util.List<Excess> getExcess()
          Fetch the collection of excess objects associated with this instance.
 Excess getExcess(int i)
          Get the instance of excess at a specific index from the collection of Excess objects associated with this instance.
 Excess getExcessById(java.lang.String excessId)
          Fetch a reference to a excess by its ID.
 java.util.List<Excess> getExcessBySectionId(java.lang.String sectionId)
          Fetch a collection of the excesses associated with a specific section.
 java.util.List<Excess> getExcessByTypeId(java.lang.String excessTypeId)
          Fetch a collection of reference to excesses of a specific type in this policy.
 int getExcessCount()
          Fetch a count of the number of excess objects associated with this instance.
 java.util.Date getExpiryDate()
          Getter returning the value of the expiryDate property.
 java.lang.String getExpiryDateAsString()
          Getter returning the value of the expiryDate property wrapped in CDATA tags.
 java.lang.String getId()
          Get this policy ID.
 java.util.Date getInceptionDate()
          Getter returning the value of the inceptionDate property.
 java.lang.String getInceptionDateAsString()
          Getter returning the value of the inceptionDate property wrapped in CDATA tags.
 java.util.List<Asset> getInsuredAssetBySectionId(java.lang.String sectionId)
          Fetch a collection of the assets associated with a specific section.
 PaymentSchedule getPaymentDetails()
          Getter returning the value of the paymentDetails property.
 Party getPolicyHolder()
          Get the policy holder associated with this policy
 java.lang.String getPolicyNumber()
          Get the policy number associated with this policy.
 java.lang.String getProductName()
          Get the textual name of the product which this policy is an instance of.
 java.lang.String getProductTypeId()
          Get the ProductTypeId.
 java.lang.String getQuotationNumber()
          Getter returning the value of the quotationNumber property.
 java.util.List<Section> getSection()
          Fetch the collection of section objects associated with this instance.
 Section getSection(int i)
          Get the instance of section at a specific index from the collection of Section objects associated with this policy.
 Section getSectionById(java.lang.String sectionId)
          Fetch a reference to a section by its ID.
 java.util.List<Section> getSectionByTypeId(java.lang.String sectionTypeId)
          Fetch a collection of reference to sections of a specific type in this policy.
 int getSectionCount()
          Fetch a count of the number of section objects associated with this instance.
 PolicyStatus getStatus()
          Get the policy status.
 java.lang.String getStatusAsString()
          Get the policy status as a string (as opposed to an instance of PolicyStatus).
 CurrencyAmount getTotalPremium()
          Get the total premium.
 java.util.List<Asset> getUninsuredAssetBySectionId(java.lang.String sectionId)
          Fetch a collection of the assets associated with a specific section.
 java.util.List<Wording> getWording()
          Get the collection of instances of com.ail.insurance.policy.Wording associated with this object.
 Wording getWording(int i)
          Fetch a spacific com.ail.insurance.policy.Wording from the collection by index number.
 int getWordingCount()
          Get a count of the number of com.ail.insurance.policy.Wording instances associated with this object
 boolean isMarkedForDecline()
          Check if this policy is marked as declined.
 boolean isMarkedForRefer()
          Check if this policy is marked as refer.
 boolean isMarkedForSubjectivity()
          Check if this policy is marked with a subjectivity.
 void lockAllAssessmentSheets(java.lang.String actor)
          Lock all the assessment sheets in the policy to the named actor
 void removeAllowable(Allowable wording)
          Remove the specified instance of com.ail.core.Allowable from the list.
 void removeAllowable(int i)
          Remove the element specified from the list.
 void removeAssessmentLinesByOrigin(java.lang.String origin)
          Remove all the assessment sheet lines added by the specified origin.
 void removeAsset(Asset asset)
          Remove a specific instance of Asset from the collection associated with this object.
 void removeAsset(int i)
          Remove a specific asset from the collection of Asset objects associated with this object.
 void removeAssetById(java.lang.String id)
          Remove a specific instance of Asset from the collection associated with this object by its ID.
 void removeCoverage(Coverage coverage)
          Remove the specified coverage from the list associated with this policy.
 void removeCoverage(int i)
          Remove the coverage at a specific index in the collection of Coverages associated with this policy.
 void removeExcess(Excess excess)
          Remove a specific instance of Excess from the collection associated with this object.
 void removeExcess(int i)
          Remove a specific excess from the collection of Excess objects associated with this object.
 void removeSection(int i)
          Remove a specific section from the collection of Section objects associated with this policy.
 void removeSection(Section section)
          Remove a specific instance of Asset from the collection associated with this object.
 void removeWording(int i)
          Remove the element specified from the list.
 void removeWording(Wording wording)
          Remove the specified instance of com.ail.insurance.policy.Wording from the list.
 void setAllowable(java.util.List<Allowable> allowable)
          Set the collection of instances of com.ail.core.Allowable associated with this object.
 void setAssessmentSheet(AssessmentSheet assessmentSheet)
          Set the assessment sheet for this policy
 void setAsset(java.util.List<Asset> asset)
          Set the collection of instances of Asset associated with this object.
 void setCoverage(java.util.List<Coverage> coverage)
          Set the collection of Coverages associated with this policy.
 void setExcess(java.util.List<Excess> excess)
          Set the collection of instances of Excess associated with this object.
 void setExpiryDate(java.util.Date expiryDate)
          Setter to update the value of the expiryDate property.
 void setExpiryDateAsString(java.lang.String expiryDate)
           
 void setId(java.lang.String id)
          Set the policy ID
 void setInceptionDate(java.util.Date inceptionDate)
          Setter to update the value of the inceptionDate property.
 void setInceptionDateAsString(java.lang.String inceptionDate)
          Setter to update the value of the inceptionDate property from a String.
 void setPaymentDetails(PaymentSchedule paymentDetails)
          Setter to update the value of the paymentDetails property.
 void setPolicyHolder(Party policyHolder)
          Set the policy holder associated with this policy
 void setPolicyNumber(java.lang.String policyNumber)
          Set the policy number associated with this policy
 void setProductName(java.lang.String productName)
           
 void setProductTypeId(java.lang.String productTypeId)
          Set the product type id associated with this policy.
 void setQuotationNumber(java.lang.String quotationNumber)
          Setter to update the value of the quotationNumber property.
 void setSection(java.util.List<Section> section)
          Set the collection of instances of Section associated with this object.
 void setStatus(PolicyStatus status)
          Move the policy to another status.
 void setStatusAsString(java.lang.String status)
          Set the policy status as a String.
 void setWording(java.util.List<Wording> wording)
          Set the collection of instances of com.ail.insurance.policy.Wording associated with this object.
 void unlockAllAssessmentSheets()
          Unlock all the assessment sheets in the policy
 
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

Policy

public Policy()
Method Detail

getCoverage

public java.util.List<Coverage> getCoverage()
Get the collection of Coverages associagted with this policy. Coverages exist at both the policy and section levels, this method will only return those associated with the policy. Use Section.getCoverage() to get those associated with specific sections.

Returns:
A collection of Coverages

setCoverage

public void setCoverage(java.util.List<Coverage> coverage)
Set the collection of Coverages associated with this policy.

Parameters:
coverage - The collection of coverages to be associated with the policy.
See Also:
getCoverage()

getCoverageCount

public int getCoverageCount()
Get the number of Coverages associated with this policy.

Returns:
The number of coverages associated with this policy.

getCoverage

public Coverage getCoverage(int i)
Get the Coverage at a specific index in the collection associated with this policy.

Parameters:
i - Index to return the coverage from.
Returns:
Coverage

removeCoverage

public void removeCoverage(int i)
Remove the coverage at a specific index in the collection of Coverages associated with this policy.

Parameters:
i - Index of coverage to remove.

addCoverage

public void addCoverage(Coverage coverage)
Add a coverage to the list associated with this policy.

Parameters:
coverage - Coverage to add to the list.

removeCoverage

public void removeCoverage(Coverage coverage)
Remove the specified coverage from the list associated with this policy.

Parameters:
coverage - Coverage to be removed

getCoverageById

public Coverage getCoverageById(java.lang.String coverageId)
Fetch the coverage with a specific id from the collection associated with this policy.

Parameters:
coverageId - ID of coverage to be returned
Returns:
Coverage, or null if no match is found.

getExcess

public java.util.List<Excess> getExcess()
Fetch the collection of excess objects associated with this instance.

Returns:
A collection of instances of Excess.

setExcess

public void setExcess(java.util.List<Excess> excess)
Set the collection of instances of Excess associated with this object.

Parameters:
excess - A collection of instances of Excess
See Also:
getExcess()

getExcessCount

public int getExcessCount()
Fetch a count of the number of excess objects associated with this instance.

Returns:
Count of excess objects.

getExcess

public Excess getExcess(int i)
Get the instance of excess at a specific index from the collection of Excess objects associated with this instance.

Parameters:
i - Index
Returns:
Instance of Excess found at index i.

getExcessBySectionId

public java.util.List<Excess> getExcessBySectionId(java.lang.String sectionId)
Fetch a collection of the excesses associated with a specific section. If no excesses are found, or the section is unknown an empty list is returned.

Parameters:
sectionId - ID of the section to fetch excesses for
Returns:
Collection of Excess instances

removeExcess

public void removeExcess(int i)
Remove a specific excess from the collection of Excess objects associated with this object.

Parameters:
i - Index of excess to remove.

addExcess

public void addExcess(Excess excess)
Add a excess to the collection associated with this object.

Parameters:
excess - Instance of Excess to add.

removeExcess

public void removeExcess(Excess excess)
Remove a specific instance of Excess from the collection associated with this object.

Parameters:
excess - Object to be removed from the collection.

getExcessById

public Excess getExcessById(java.lang.String excessId)
Fetch a reference to a excess by its ID. Each excess has a unique id within a policy which other parts of the policy (other excess, sections, etc) use to refer to it. This method searches through the excess in the policy the appropriate excess if found.

Parameters:
excessId - excess's id
Returns:
A excess, or null if an excess by this ID cannot be found.

getExcessByTypeId

public java.util.List<Excess> getExcessByTypeId(java.lang.String excessTypeId)
Fetch a collection of reference to excesses of a specific type in this policy. A policy may contain more than one excess of the same type. This method searches through the excess matching the excessTypeId specified against each excess's excessTypeId.

Parameters:
excessTypeId - Type of excess to search for.
Returns:
A collection of the excesses found, or an empty Collection if none are found.

getAsset

public java.util.List<Asset> getAsset()
Fetch the collection of asset objects associated with this instance.

Returns:
A collection of instances of Asset.

setAsset

public void setAsset(java.util.List<Asset> asset)
Set the collection of instances of Asset associated with this object.

Parameters:
asset - A collection of instances of Asset

getAssetCount

public int getAssetCount()
Fetch a count of the number of asset objects associated with this instance.

Returns:
Count of asset objects.

getAsset

public Asset getAsset(int i)
Get the instance of asset at a specific index from the collection of Asset objects associated with this instance.

Parameters:
i - Index
Returns:
Instance of Asset found at index i.

removeAsset

public void removeAsset(int i)
Remove a specific asset from the collection of Asset objects associated with this object.

Parameters:
i - Index of asset to remove.

addAsset

public void addAsset(Asset asset)
Add a asset to the collection associated with this object.

Parameters:
asset - Instance of Asset to add.

removeAsset

public void removeAsset(Asset asset)
Remove a specific instance of Asset from the collection associated with this object.

Parameters:
asset - Object to be removed from the collection.

removeAssetById

public void removeAssetById(java.lang.String id)
Remove a specific instance of Asset from the collection associated with this object by its ID. Each asset has a unique id within a policy which other parts of the policy (Sections, excesses, etc) use to refer to it. This method seaches through the assets in the policy the appropriate asset if found.

Parameters:
id - AssetId

getAssetById

public Asset getAssetById(java.lang.String id)
Fetch a reference to an asset by its ID. Each asset has a unique id within a policy which other parts of the policy (Sections, excesses, etc) use to refer to it. This method seaches through the assets in the policy the appropriate asset if found.

Parameters:
id - AssetId
Returns:
An asset, or null if an asset by this ID cannot be found.

getAssetByTypeId

public java.util.List<Asset> getAssetByTypeId(java.lang.String typeId)
Fetch a collection of reference to assets of a specific type in this policy. A policy may contain more than one asset of the same type (more than one car on a motor policy for example). This method searches through the assets matching the typeId specified against each asset's assetTypeId.

Parameters:
typeId - Type of Asset to search for.
Returns:
A collection of the assets found, or an empty Collection if none are found.

getAssetBySectionId

public java.util.List<Asset> getAssetBySectionId(java.lang.String sectionId)
Fetch a collection of the assets associated with a specific section. This method returns all of the assets associated, those in the section's insured and uninsured asset lists.

If no assets are found, or the section is unknown an empty list is returned.

Parameters:
sectionId - ID of the section to fetch assets for
Returns:
Collection of Asset instances

getInsuredAssetBySectionId

public java.util.List<Asset> getInsuredAssetBySectionId(java.lang.String sectionId)
Fetch a collection of the assets associated with a specific section. This method returns only the section's insured assets.

If no assets are found, or the section is unknown an empty list is returned.

Parameters:
sectionId - ID of the section to fetch assets for
Returns:
Collection of Asset instances
See Also:
getAssetBySectionId(String), getUninsuredAssetBySectionId(String)

getUninsuredAssetBySectionId

public java.util.List<Asset> getUninsuredAssetBySectionId(java.lang.String sectionId)
Fetch a collection of the assets associated with a specific section. This method returns only the section's uninsured assets.

If no assets are found, or the section is unknown an empty list is returned.

Parameters:
sectionId - ID of the section to fetch assets for
Returns:
Collection of Asset instances
See Also:
getAssetBySectionId(String), getInsuredAssetBySectionId(String)

getSection

public java.util.List<Section> getSection()
Fetch the collection of section objects associated with this instance.

Returns:
A collection of instances of Section.

setSection

public void setSection(java.util.List<Section> section)
Set the collection of instances of Section associated with this object.

Parameters:
section - A collection of instances of Section

getSectionCount

public int getSectionCount()
Fetch a count of the number of section objects associated with this instance.

Returns:
Count of section objects.

getSection

public Section getSection(int i)
Get the instance of section at a specific index from the collection of Section objects associated with this policy.

Parameters:
i - Index
Returns:
Instance of Section found at index i.

removeSection

public void removeSection(int i)
Remove a specific section from the collection of Section objects associated with this policy.

Parameters:
i - Index of section to remove.

addSection

public void addSection(Section section)
Add a section to the collection associated with this policy.

Parameters:
section - Instance of Section to add.

removeSection

public void removeSection(Section section)
Remove a specific instance of Asset from the collection associated with this object.

Parameters:
section - Object to be removed from the collection.

getSectionById

public Section getSectionById(java.lang.String sectionId)
Fetch a reference to a section by its ID. Each section has a unique id within a policy which other parts of the policy (other sections, excesses, etc) use to refer to it. This method seaches through the sections in the policy the appropriate section if found.

Parameters:
sectionId - section's id
Returns:
A section, or null if an section by this ID cannot be found.

getSectionByTypeId

public java.util.List<Section> getSectionByTypeId(java.lang.String sectionTypeId)
Fetch a collection of reference to sections of a specific type in this policy. A policy may contain more than one section of the same type. This method searches through the sections matching the sectionTypeId specified against each section's sectionTypeId.

Parameters:
sectionTypeId - Type of Section to search for.
Returns:
A collection of the sections found, or an empty Collection if none are found.

getId

public java.lang.String getId()
Get this policy ID. This id is unique to the polict

Returns:
The policy ID.

setId

public void setId(java.lang.String id)
Set the policy ID

Parameters:
id - New policy ID

getStatus

public PolicyStatus getStatus()
Get the policy status. This status indicates where the policy is in its lifecycle. Examples are Application, Quotation, OnRisk...

Returns:
The current policy status.

getStatusAsString

public java.lang.String getStatusAsString()
Get the policy status as a string (as opposed to an instance of PolicyStatus).

Returns:
String representation of the policy status, or null if the status property has not been set.

setStatus

public void setStatus(PolicyStatus status)
Move the policy to another status.

See Also:
getStatus()

setStatusAsString

public void setStatusAsString(java.lang.String status)
                       throws java.lang.IndexOutOfBoundsException
Set the policy status as a String. The String must represents a valid policy status. i.e. it must be suitable for a call to PolicyStatus.forName().

Parameters:
status - New policy status
Throws:
java.lang.IndexOutOfBoundsException - If status is not a valid policy status.
See Also:
PolicyStatus.forName(java.lang.String)

getAssessmentSheet

public AssessmentSheet getAssessmentSheet()
Get the AssessmentSheet associated with this policy.

Returns:
Assessment sheet. An empty assessment sheet may be returned, but null is never returned.

setAssessmentSheet

public void setAssessmentSheet(AssessmentSheet assessmentSheet)
Set the assessment sheet for this policy

Parameters:
assessmentSheet - Assessment sheet

getPolicyHolder

public Party getPolicyHolder()
Get the policy holder associated with this policy

Returns:
An instance of policy holder (Organisation or Person)

setPolicyHolder

public void setPolicyHolder(Party policyHolder)
Set the policy holder associated with this policy

Parameters:
policyHolder - New policy holder

getProductTypeId

public java.lang.String getProductTypeId()
Get the ProductTypeId. This string identifies the product that the policy relates to. Among other things it allows services (e.g. assessRisk) to identify the appropriate rules to run when processing this policy.

Returns:
The product type id.

setProductTypeId

public void setProductTypeId(java.lang.String productTypeId)
Set the product type id associated with this policy.

Parameters:
productTypeId - New product type id
See Also:
getProductTypeId()

getPolicyNumber

public java.lang.String getPolicyNumber()
Get the policy number associated with this policy.

Returns:
The policy number.

setPolicyNumber

public void setPolicyNumber(java.lang.String policyNumber)
Set the policy number associated with this policy

Parameters:
policyNumber - New policy number

getQuotationNumber

public java.lang.String getQuotationNumber()
Getter returning the value of the quotationNumber property. The quotation number associated with this policy

Returns:
Value of the quotationNumber property

setQuotationNumber

public void setQuotationNumber(java.lang.String quotationNumber)
Setter to update the value of the quotationNumber property. The quotation number associated with this policy

Parameters:
quotationNumber - New value for the quotationNumber property

isMarkedForDecline

public boolean isMarkedForDecline()
Check if this policy is marked as declined. This involves checking the assessment sheet on the policy itself and on all of its sections.

Returns:
true if a decline flag is found, false otherwise.

isMarkedForRefer

public boolean isMarkedForRefer()
Check if this policy is marked as refer. This involves checking the assessment sheet on the policy itself and on all of its sections.

Returns:
true if a refer flag is found, false otherwise.

isMarkedForSubjectivity

public boolean isMarkedForSubjectivity()
Check if this policy is marked with a subjectivity. This involves checking the assessment sheet on the policy itself and on all of its sections.

Returns:
true if a refer flag is found, false otherwise.

getTotalPremium

public CurrencyAmount getTotalPremium()
Get the total premium. The premium is a calculate value held in the assessment sheeet, it will only be present once the premium has been calculated.

Returns:
Total premium, or null if the field is not present in the assessment sheet.

lockAllAssessmentSheets

public void lockAllAssessmentSheets(java.lang.String actor)
Lock all the assessment sheets in the policy to the named actor

Parameters:
actor - The name of the locking actor

unlockAllAssessmentSheets

public void unlockAllAssessmentSheets()
Unlock all the assessment sheets in the policy


removeAssessmentLinesByOrigin

public void removeAssessmentLinesByOrigin(java.lang.String origin)
Remove all the assessment sheet lines added by the specified origin. Lines are removed from both the policy and section levels.

Parameters:
origin - The name of the origin to remove lines for.

getInceptionDate

public java.util.Date getInceptionDate()
Getter returning the value of the inceptionDate property. The date when the policy was incepted (created)

Returns:
Value of the inceptionDate property

setInceptionDate

public void setInceptionDate(java.util.Date inceptionDate)
Setter to update the value of the inceptionDate property. The date when the policy was incepted (created)

Parameters:
inceptionDate - New value for the inceptionDate property

getInceptionDateAsString

public java.lang.String getInceptionDateAsString()
Getter returning the value of the inceptionDate property wrapped in CDATA tags. The date when the policy was incepted (created)

Returns:
Value of the inceptionDate property

setInceptionDateAsString

public void setInceptionDateAsString(java.lang.String inceptionDate)
                              throws java.text.ParseException
Setter to update the value of the inceptionDate property from a String. The supplied date must be in DateFormat.SHORT format.

Parameters:
inceptionDate - New value for the inceptionDate property
Throws:
java.text.ParseException

getExpiryDate

public java.util.Date getExpiryDate()
Getter returning the value of the expiryDate property. The date at which the policy will (of has) expired

Returns:
Value of the expiryDate property

setExpiryDate

public void setExpiryDate(java.util.Date expiryDate)
Setter to update the value of the expiryDate property. The date at which the policy will (of has) expired

Parameters:
expiryDate - New value for the expiryDate property

getExpiryDateAsString

public java.lang.String getExpiryDateAsString()
Getter returning the value of the expiryDate property wrapped in CDATA tags. The date at which the policy will (of has) expired

Returns:
Value of the expiryDate property

setExpiryDateAsString

public void setExpiryDateAsString(java.lang.String expiryDate)
                           throws java.text.ParseException
Throws:
java.text.ParseException

getWording

public java.util.List<Wording> getWording()
Get the collection of instances of com.ail.insurance.policy.Wording associated with this object.

Returns:
wording A collection of instances of Excess
See Also:
setWording(java.util.List)

setWording

public void setWording(java.util.List<Wording> wording)
Set the collection of instances of com.ail.insurance.policy.Wording associated with this object.

Parameters:
wording - A collection of instances of Excess
See Also:
getWording()

getWordingCount

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

Returns:
Number of instances

getWording

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

Parameters:
i - Index of element to return
Returns:
The instance of com.ail.insurance.policy.Wording at the specified index

removeWording

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

Parameters:
i - Index of element to remove

removeWording

public void removeWording(Wording wording)
Remove the specified instance of com.ail.insurance.policy.Wording from the list.

Parameters:
wording - Instance to be removed

addWording

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

Parameters:
wording - Instance to add to list

getPaymentDetails

public PaymentSchedule getPaymentDetails()
Getter returning the value of the paymentDetails property. The proposed method of payment and its details

Returns:
Value of the paymentDetails property

setPaymentDetails

public void setPaymentDetails(PaymentSchedule paymentDetails)
Setter to update the value of the paymentDetails property. The proposed method of payment and its details

Parameters:
paymentDetails - New value for the paymentDetails property

getAllowable

public java.util.List<Allowable> getAllowable()
Get the collection of instances of com.ail.core.Allowable associated with this object.

Returns:
A collection of instances of Allowable
See Also:
setAllowable(java.util.List)

setAllowable

public void setAllowable(java.util.List<Allowable> allowable)
Set the collection of instances of com.ail.core.Allowable associated with this object.

Parameters:
allowable - A collection of instances of Allowable
See Also:
getAllowable()

getAllowableCount

public int getAllowableCount()
Get a count of the number of com.ail.core.Allowable instances associated with this object

Returns:
Number of instances

getAllowable

public Allowable getAllowable(int i)
Fetch a spacific com.ail.core.Allowable from the collection by index number.

Parameters:
i - Index of element to return
Returns:
The instance of com.ail.core.Allowable at the specified index

removeAllowable

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

Parameters:
i - Index of element to remove

removeAllowable

public void removeAllowable(Allowable wording)
Remove the specified instance of com.ail.core.Allowable from the list.

Parameters:
wording - Instance to be removed

addAllowable

public void addAllowable(Allowable allowable)
Add an instance of com.ail.core.Allowable to the list associated with this object.

Parameters:
wording - Instance to add to list

getProductName

public java.lang.String getProductName()
Get the textual name of the product which this policy is an instance of. This is the name which the product is known by outside of the system, and will appear on screens and documents.

Returns:
product name

setProductName

public void setProductName(java.lang.String productName)
Parameters:
productName -
See Also:
getProductName()