|
||||||||||
| 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.Excess
public class Excess
An Excess represents the amount for which the policy holder is liable before a claim can be made. An excess
may be either a "deductible excess" or a standard excess. See the isDeductible() method
for details.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
Excess()
|
|
| Method Summary | |
|---|---|
void |
addAssetId(java.lang.String assetId)
Add a assetId to the collection associated with this object. |
CurrencyAmount |
getAmount()
|
java.util.Collection<java.lang.String> |
getAssetId()
Fetch the collection of assetId objects associated with this instance. |
java.lang.String |
getAssetId(int i)
Get the instance of assetId at a specific index from the collection of String objects associated with this instance. |
int |
getAssetIdCount()
Fetch a count of the number of assetId objects associated with this instance. |
java.lang.String |
getExcessTypeId()
|
java.lang.String |
getId()
Return the ID of this excess. |
java.lang.String |
getTitle()
|
boolean |
isDeductible()
Returns true if this excess should be treated as a deductible, or false if it is a normal excess. |
boolean |
isEnabled()
|
void |
removeAssetId(int i)
Remove a specific assetId from the collection of String objects associated with this object. |
void |
removeAssetId(java.lang.String assetId)
Remove a specific instance of String from the collection associated with this object. |
void |
setAmount(CurrencyAmount amount)
|
void |
setAssetId(java.util.Collection<java.lang.String> assetId)
Set the collection of instances of String associated with this object. |
void |
setAssetId(java.util.Vector<java.lang.String> assetId)
|
void |
setDeductible(boolean deductible)
|
void |
setEnabled(boolean enabled)
|
void |
setExcessTypeId(java.lang.String excessTypeId)
|
void |
setId(java.lang.String id)
|
void |
setTitle(java.lang.String title)
|
| 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 Excess()
| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id)
id - getId()public java.util.Collection<java.lang.String> getAssetId()
public void setAssetId(java.util.Collection<java.lang.String> assetId)
assetId - A collection of instances of Stringpublic int getAssetIdCount()
public java.lang.String getAssetId(int i)
i - Index
public void removeAssetId(int i)
i - Index of assetId to remove.public void addAssetId(java.lang.String assetId)
assetId - Instance of String to add.public void removeAssetId(java.lang.String assetId)
assetId - Object to be removed from the collection.public CurrencyAmount getAmount()
public void setAmount(CurrencyAmount amount)
public java.lang.String getExcessTypeId()
public void setExcessTypeId(java.lang.String excessTypeId)
public boolean isDeductible()
if ( loss < deductible ) then payment = nill
otherwise if [( loss - deductible ) < limit] then payment = ( loss - deductible )
otherwise payment = ( limit - deductible )
Whereas a normal excess is processed like this:
if ( loss < excess ) then payment = nill
otherwise if [( loss - excess ) < limit] then payment = ( loss - excess )
otherwise payment = limit
public void setDeductible(boolean deductible)
deductible - The deductible to set.isDeductible()public boolean isEnabled()
public void setEnabled(boolean enabled)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setAssetId(java.util.Vector<java.lang.String> assetId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||