public class PackagedApprovalItem
extends java.lang.Object
implements java.io.Serializable
This class is used as a component of the PackagedApprovalDocument workflow relevant data item. Each instance of the PackagedApprovalItem class represents an item to be considered as part of a multi-item approval activity.
The item is composed of a type, identifier, and List of children.
ItemType enumeration.| Modifier and Type | Class and Description |
|---|---|
static class |
PackagedApprovalItem.ItemType
The
ItemType enumeration provides the possible
object types that could be represented by this approval item. |
| Constructor and Description |
|---|
PackagedApprovalItem(PackagedApprovalItem.ItemType t,
java.lang.String id)
Constructs a
PackagedApprovalItem with the specified
type and String identifier. |
PackagedApprovalItem(PackagedApprovalItem.ItemType t,
java.lang.String id,
java.util.List<PackagedApprovalItem> c)
Constructs a
PackagedApprovalItem with the specified
type and String identifier. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the values in the item.
|
java.util.List<PackagedApprovalItem> |
getChildren()
Returns a reference to the list of children, possibly empty, but not null.
|
java.lang.String |
getItemId()
Returns the item identifier.
|
PackagedApprovalItem.ItemType |
getItemType()
Returns the item type.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setChildren(java.util.List<PackagedApprovalItem> children)
Updates the list of children.
|
void |
setItemType(PackagedApprovalItem.ItemType type)
Updates the type of this item.
|
java.lang.String |
toString()
Returns a String containing the values of the object.
|
public PackagedApprovalItem(PackagedApprovalItem.ItemType t, java.lang.String id)
PackagedApprovalItem with the specified
type and String identifier. The item will initially contain an
empty list of children.t - the ItemType for the new approval itemid - the String identifier for the itempublic PackagedApprovalItem(PackagedApprovalItem.ItemType t, java.lang.String id, java.util.List<PackagedApprovalItem> c)
PackagedApprovalItem with the specified
type and String identifier.t - the ItemType for the new approval itemid - the String identifier for the itemc - the List of child PackagedApprovalItem,
which should not be nullpublic java.lang.String getItemId()
String item idpublic PackagedApprovalItem.ItemType getItemType()
ItemType for this objectpublic void setItemType(PackagedApprovalItem.ItemType type)
type - new type of this object.public java.util.List<PackagedApprovalItem> getChildren()
List of PackagedApprovalItempublic void setChildren(java.util.List<PackagedApprovalItem> children)
children - a List of PackagedApprovalItem, which
should not be nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the PackagedApprovalItem to compare to this onepublic java.lang.String toString()
toString in class java.lang.Object