|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.workflow.model.PackagedApprovalItem
public class PackagedApprovalItem
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.
Nested Class Summary | |
---|---|
static class |
PackagedApprovalItem.ItemType
The ItemType enumeration provides the possible
object types that could be represented by this approval item. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 nullMethod Detail |
---|
public 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 PackagedApprovalItem
public void setChildren(java.util.List<PackagedApprovalItem> children)
children
- a List
of PackagedApprovalItem
, which
should not be nullpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the PackagedApprovalItem
to compare to this one
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |