|
||||||||||
| 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.Policy
public class Policy
| 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 |
|---|
public Policy()
| Method Detail |
|---|
public java.util.List<Coverage> getCoverage()
Section.getCoverage() to get those associated with specific sections.
public void setCoverage(java.util.List<Coverage> coverage)
coverage - The collection of coverages to be associated with the policy.getCoverage()public int getCoverageCount()
public Coverage getCoverage(int i)
i - Index to return the coverage from.
public void removeCoverage(int i)
i - Index of coverage to remove.public void addCoverage(Coverage coverage)
coverage - Coverage to add to the list.public void removeCoverage(Coverage coverage)
coverage - Coverage to be removedpublic Coverage getCoverageById(java.lang.String coverageId)
coverageId - ID of coverage to be returned
public java.util.List<Excess> getExcess()
public void setExcess(java.util.List<Excess> excess)
excess - A collection of instances of ExcessgetExcess()public int getExcessCount()
public Excess getExcess(int i)
i - Index
public java.util.List<Excess> getExcessBySectionId(java.lang.String sectionId)
sectionId - ID of the section to fetch excesses for
public void removeExcess(int i)
i - Index of excess to remove.public void addExcess(Excess excess)
excess - Instance of Excess to add.public void removeExcess(Excess excess)
excess - Object to be removed from the collection.public Excess getExcessById(java.lang.String excessId)
excessId - excess's id
public java.util.List<Excess> getExcessByTypeId(java.lang.String excessTypeId)
excessTypeId - Type of excess to search for.
public java.util.List<Asset> getAsset()
public void setAsset(java.util.List<Asset> asset)
asset - A collection of instances of Assetpublic int getAssetCount()
public Asset getAsset(int i)
i - Index
public void removeAsset(int i)
i - Index of asset to remove.public void addAsset(Asset asset)
asset - Instance of Asset to add.public void removeAsset(Asset asset)
asset - Object to be removed from the collection.public void removeAssetById(java.lang.String id)
id - AssetIdpublic Asset getAssetById(java.lang.String id)
id - AssetId
public java.util.List<Asset> getAssetByTypeId(java.lang.String typeId)
typeId - Type of Asset to search for.
public java.util.List<Asset> getAssetBySectionId(java.lang.String sectionId)
sectionId - ID of the section to fetch assets for
public java.util.List<Asset> getInsuredAssetBySectionId(java.lang.String sectionId)
sectionId - ID of the section to fetch assets for
getAssetBySectionId(String),
getUninsuredAssetBySectionId(String)public java.util.List<Asset> getUninsuredAssetBySectionId(java.lang.String sectionId)
sectionId - ID of the section to fetch assets for
getAssetBySectionId(String),
getInsuredAssetBySectionId(String)public java.util.List<Section> getSection()
public void setSection(java.util.List<Section> section)
section - A collection of instances of Sectionpublic int getSectionCount()
public Section getSection(int i)
i - Index
public void removeSection(int i)
i - Index of section to remove.public void addSection(Section section)
section - Instance of Section to add.public void removeSection(Section section)
section - Object to be removed from the collection.public Section getSectionById(java.lang.String sectionId)
sectionId - section's id
public java.util.List<Section> getSectionByTypeId(java.lang.String sectionTypeId)
sectionTypeId - Type of Section to search for.
public java.lang.String getId()
public void setId(java.lang.String id)
id - New policy IDpublic PolicyStatus getStatus()
public java.lang.String getStatusAsString()
public void setStatus(PolicyStatus status)
getStatus()
public void setStatusAsString(java.lang.String status)
throws java.lang.IndexOutOfBoundsException
status - New policy status
java.lang.IndexOutOfBoundsException - If status is not a valid policy status.PolicyStatus.forName(java.lang.String)public AssessmentSheet getAssessmentSheet()
public void setAssessmentSheet(AssessmentSheet assessmentSheet)
assessmentSheet - Assessment sheetpublic Party getPolicyHolder()
public void setPolicyHolder(Party policyHolder)
policyHolder - New policy holderpublic java.lang.String getProductTypeId()
public void setProductTypeId(java.lang.String productTypeId)
productTypeId - New product type idgetProductTypeId()public java.lang.String getPolicyNumber()
public void setPolicyNumber(java.lang.String policyNumber)
policyNumber - New policy numberpublic java.lang.String getQuotationNumber()
public void setQuotationNumber(java.lang.String quotationNumber)
quotationNumber - New value for the quotationNumber propertypublic boolean isMarkedForDecline()
public boolean isMarkedForRefer()
public boolean isMarkedForSubjectivity()
public CurrencyAmount getTotalPremium()
public void lockAllAssessmentSheets(java.lang.String actor)
actor - The name of the locking actorpublic void unlockAllAssessmentSheets()
public void removeAssessmentLinesByOrigin(java.lang.String origin)
origin - The name of the origin to remove lines for.public java.util.Date getInceptionDate()
public void setInceptionDate(java.util.Date inceptionDate)
inceptionDate - New value for the inceptionDate propertypublic java.lang.String getInceptionDateAsString()
public void setInceptionDateAsString(java.lang.String inceptionDate)
throws java.text.ParseException
inceptionDate - New value for the inceptionDate property
java.text.ParseExceptionpublic java.util.Date getExpiryDate()
public void setExpiryDate(java.util.Date expiryDate)
expiryDate - New value for the expiryDate propertypublic java.lang.String getExpiryDateAsString()
public void setExpiryDateAsString(java.lang.String expiryDate)
throws java.text.ParseException
java.text.ParseExceptionpublic java.util.List<Wording> getWording()
setWording(java.util.List) public void setWording(java.util.List<Wording> wording)
wording - A collection of instances of ExcessgetWording()public int getWordingCount()
public Wording getWording(int i)
i - Index of element to return
public void removeWording(int i)
i - Index of element to removepublic void removeWording(Wording wording)
wording - Instance to be removedpublic void addWording(Wording wording)
wording - Instance to add to listpublic PaymentSchedule getPaymentDetails()
public void setPaymentDetails(PaymentSchedule paymentDetails)
paymentDetails - New value for the paymentDetails propertypublic java.util.List<Allowable> getAllowable()
setAllowable(java.util.List) public void setAllowable(java.util.List<Allowable> allowable)
allowable - A collection of instances of AllowablegetAllowable()public int getAllowableCount()
public Allowable getAllowable(int i)
i - Index of element to return
public void removeAllowable(int i)
i - Index of element to removepublic void removeAllowable(Allowable wording)
wording - Instance to be removedpublic void addAllowable(Allowable allowable)
wording - Instance to add to listpublic java.lang.String getProductName()
public void setProductName(java.lang.String productName)
productName - getProductName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||