|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imixs.workflow.ItemCollection
public class ItemCollection
This Class defines a ValueObject to be used to exchange Datastructures used
by the org.imixs.workflow Framework. Every component of this framework should
use this wrapper class to easy transport workflowrelevant data between the
different workflow modules. ValueObjects, particular in J2EE Applications,
have the advantage to improve perfomance of remote methode calls and also
enables a flexibly datastructure. A ItemCollection contains various Items
(attributes). Every Item exist of a Name and a Value. Internal every Value is
stored inside a Vector Class. So it is also possible to store
multivalueobjects. The ItemCollection wraps the
java.util.Hashtable Class and implements the
java.io.Serializable Interface, so the ValeOject can also be
serialised inside a remote methode call.
WorkflowManager,
Serialized Form| Constructor Summary | |
|---|---|
ItemCollection()
Creates a empty ItemCollection |
|
ItemCollection(Map map)
Creates a new ItemCollection and transfers all Objects of map as new values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Map |
getAllItems()
returns all Items of the Collection as a Map |
Vector |
getItemValue(String aName)
returns the Value of a single Item inside the ItemCollection. |
boolean |
getItemValueBoolean(String aName)
Returns the boolean value of an item. |
Date |
getItemValueDate(String aName)
Returns the value of an item with a single Date value. |
double |
getItemValueDouble(String aName)
Returns the value of an item with a single numeric value. |
int |
getItemValueInteger(String aName)
Returns the value of an item with a single numeric value. |
String |
getItemValueString(String aName)
Returns the value of an item with a single text value. |
boolean |
hasItem(String aName)
Indicates whether an item exists in the document. |
void |
removeItem(String name)
removes a attribute from the item collection |
void |
replaceAllItems(Map map)
Replaces all items specified in the map with new items, which are assigned to the specified values inside the map |
void |
replaceItemValue(String aName,
Object o)
Replaces a item of the specified name with one new item, which is assigned the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemCollection()
Exception
public ItemCollection(Map map)
throws Exception
map -
Exception| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic Vector getItemValue(String aName)
aName - The name of an item.
Exceptionpublic String getItemValueString(String aName)
aName - The name of an item.
Exceptionpublic int getItemValueInteger(String aName)
aName -
Exceptionpublic Date getItemValueDate(String aName)
aName -
Exceptionpublic double getItemValueDouble(String aName)
aName -
Exceptionpublic boolean getItemValueBoolean(String aName)
aName -
Exceptionpublic boolean hasItem(String aName)
aName - The name of an item.
Exceptionpublic Map getAllItems()
public void replaceItemValue(String aName,
Object o)
throws Exception
aName - The name of the item or items you want to replace.o - The value of the new item. The data type of the item depends
upon the data type of value, and does not need to match the
data type of the old item.
Exception
public void replaceAllItems(Map map)
throws Exception
map -
Exceptionpublic void removeItem(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||