|
||||||||||
| 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 | |
|---|---|
void |
addFile(byte[] data,
String fileName,
String contentType)
This method adds a single file to the ItemCollection. files will be stored into the property $file. |
void |
appendItemValue(String itemName,
Object itemValue)
Appends a value to an existing item. |
boolean |
equals(Object o)
|
Map |
getAllItems()
returns all Items of the Collection as a Map |
String[] |
getFiles()
Returns a list of file names attached to the current BlobWorkitem. |
Map |
getItem()
|
Map |
getItemList()
|
Map |
getItemListArray()
|
List |
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 |
removeFile(String aFilename)
This method removes a single file attachment from the BlobWorkitem |
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 itemName,
Object itemValue)
Replaces the value of an item. |
void |
setAllItems(Map aHash)
replaces the current map object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemCollection()
public ItemCollection(Map map)
map - | Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic List getItemValue(String aName)
aName - The name of an item.
public String getItemValueString(String aName)
aName - The name of an item.
public int getItemValueInteger(String aName)
aName -
public Date getItemValueDate(String aName)
aName -
public double getItemValueDouble(String aName)
aName -
public boolean getItemValueBoolean(String aName)
aName -
public boolean hasItem(String aName)
aName - The name of an item.
public Map getAllItems()
public void setAllItems(Map aHash)
aHash -
public void replaceItemValue(String itemName,
Object itemValue)
itemName - The name of the item or items you want to replace.itemValue - 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.
public void appendItemValue(String itemName,
Object itemValue)
itemName - The name of the item or items you want to replace.itemValue - 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.public void replaceAllItems(Map map)
map - public void removeItem(String name)
name -
public void addFile(byte[] data,
String fileName,
String contentType)
data - - byte array with file datafileName - - name of the file attachmentcontentType - - the contenttype (e.g. 'Text/HTML')public void removeFile(String aFilename)
public String[] getFiles()
public Map getItem()
public Map getItemList()
public Map getItemListArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||