public class ImpactItem
extends java.lang.Object
implements java.io.Serializable
If an ImpactItem instance contains a reason, then the object itself is affected. If the reason is null, then it is simply a container to organize the child ImpactItems.
| Constructor and Description |
|---|
ImpactItem(java.lang.Object obj,
ImpactReason reason)
Constructs an ImpactItem for the specified object with
the specified reason.
|
ImpactItem(java.lang.Object o,
ImpactReason reason,
java.util.List<ImpactItem> childItems)
Constructs an ImpactItem for the specified object with
the specified reason, along with a List of child ImpactItem.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ImpactItem> |
getChildImpactList()
Returns a reference to the List of child ImpactItems,
which may contain the affected children of this item.
|
ImpactReason |
getImpactReason()
Returns the reason this item was impacted.
|
java.lang.Object |
getObject()
Returns the impacted object.
|
void |
setObject(java.lang.Object obj)
Updates the impacted object.
|
public ImpactItem(java.lang.Object obj,
ImpactReason reason)
obj - the impacted Objectreason - the ImpactReason, null if there is no impactpublic ImpactItem(java.lang.Object o,
ImpactReason reason,
java.util.List<ImpactItem> childItems)
o - the impacted Objectreason - the ImpactReason, null if there is no impactchildItems - a List of ImpactItem that are children of this itempublic java.lang.Object getObject()
public void setObject(java.lang.Object obj)
obj - the impacted Objectpublic ImpactReason getImpactReason()
public java.util.List<ImpactItem> getChildImpactList()