com.ail.insurance.policy
Class Marker

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.insurance.policy.AssessmentLine
          extended by com.ail.insurance.policy.Marker
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<AssessmentLine>
Direct Known Subclasses:
Subjectivity

public class Marker
extends AssessmentLine

A marker assessment line represents a generalization of a referral or decline.

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

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
Marker()
          Default constructor
Marker(java.lang.String id, java.lang.String reason, Reference relatesTo, MarkerType type)
          Constructor
Marker(java.lang.String id, java.lang.String reason, Reference relatesTo, MarkerType type, int priority)
          Constructor
 
Method Summary
 MarkerType getType()
          Get the value of the type property.
 java.lang.String getTypeAsString()
          Get the current value of the type property as a String.
 void setType(MarkerType type)
          Set the type property.
 void setTypeAsString(java.lang.String type)
          Set the type property from a String.
 
Methods inherited from class com.ail.insurance.policy.AssessmentLine
compareTo, getCalculatedOrder, getId, getOrigin, getPriority, getReason, getRelatesTo, isDisabled, setCalculatedOrder, setDisabled, setId, setOrigin, setPriority, setReason, setRelatesTo
 
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

Marker

public Marker()
Default constructor


Marker

public Marker(java.lang.String id,
              java.lang.String reason,
              Reference relatesTo,
              MarkerType type)
Constructor

Parameters:
id - This line's Id
reason - Free text reason for why this marker was applied.
relatesTo - Optionl reference to the part of the policy that caused the marker.
type - This marker's type.

Marker

public Marker(java.lang.String id,
              java.lang.String reason,
              Reference relatesTo,
              MarkerType type,
              int priority)
Constructor

Parameters:
id - This line's Id
reason - Free text reason for why this marker was applied.
relatesTo - Optionl reference to the part of the policy that caused the marker.
type - This marker's type.
priority - The priority of this line wrt other lines in the same sheet (lines with higher priority values are processed first)
Method Detail

setType

public void setType(MarkerType type)
Set the type property. This property describes the type of marker represented (e.g. refer, decline).

Parameters:
type - New value for type property.

setTypeAsString

public void setTypeAsString(java.lang.String type)
Set the type property from a String. This property describes the type of marker represented (e.g. refer, decline). The argument passed must represent a valid value for calling MarkerType.forName(arg).

Parameters:
type - New value for type property.
Throws:
java.lang.IndexOutOfBoundsException - If type is not a valid string representation of MarkerType.
See Also:
MarkerType.forName(java.lang.String), setType(com.ail.insurance.policy.MarkerType)

getType

public MarkerType getType()
Get the value of the type property. This property describes the type of marker represented (e.g. refer, decline).

Returns:
Value of type

getTypeAsString

public java.lang.String getTypeAsString()
Get the current value of the type property as a String.

Returns:
Value of type property as a String, or null if type is null.
See Also:
getType()