org.imixs.workflow.xml
Class XMLItemCollectionAdapter

java.lang.Object
  extended by org.imixs.workflow.xml.XMLItemCollectionAdapter

public class XMLItemCollectionAdapter
extends Object

An XMLItemCollectionAdapter converts a org.imixs.workflow.xml.XMLItemCollection into a org.imixs.workflow.ItemCollection and reverse

Version:
1.1
Author:
imixs.com - Ralph Soika
See Also:
ItemCollection

Constructor Summary
XMLItemCollectionAdapter()
           
 
Method Summary
static ItemCollection getItemCollection(XMLItemCollection entity)
          This Methode converts a org.imixs.workflow.service.ItemArray into a org.imixs.workflow.ItemCollection Returns null if ItemArray == null
static EntityCollection putCollection(Collection<ItemCollection> col)
          This method transforms a Collection into a EntityCollection
static EntityCollection putCollection(Collection<ItemCollection> col, List<String> itemNames)
          This method transforms a Collection into a EntityCollection If the attribute List is provided only the corresponding properties will be returned.
static XMLItemCollection putItemCollection(ItemCollection aItemCollection)
          This Method converts a org.imixs.workflow.ItemCollection into a Entity The method verifies if the values stored are basic java types.
static XMLItemCollection putItemCollection(ItemCollection aItemCollection, List<String> itemNames)
          This Method converts a org.imixs.workflow.ItemCollection into a Entity The method verifies if the values stored are basic java types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLItemCollectionAdapter

public XMLItemCollectionAdapter()
Method Detail

getItemCollection

public static ItemCollection getItemCollection(XMLItemCollection entity)
This Methode converts a org.imixs.workflow.service.ItemArray into a org.imixs.workflow.ItemCollection Returns null if ItemArray == null

Parameters:
ItemArray -
Returns:
ItemCollection

putItemCollection

public static XMLItemCollection putItemCollection(ItemCollection aItemCollection,
                                                  List<String> itemNames)
                                           throws Exception
This Method converts a org.imixs.workflow.ItemCollection into a Entity

The method verifies if the values stored are basic java types. If not these values will not be converted!

Parameters:
aItemCollection - Collection Object to be converted
itemNames - - optional list of item names to be converted. If null all items will be converted
Throws:
Exception

putItemCollection

public static XMLItemCollection putItemCollection(ItemCollection aItemCollection)
                                           throws Exception
This Method converts a org.imixs.workflow.ItemCollection into a Entity

The method verifies if the values stored are basic java types. If not these values will not be converted!

Parameters:
aItemCollection - Collection Object to be converted
Throws:
Exception

putCollection

public static EntityCollection putCollection(Collection<ItemCollection> col)
                                      throws Exception
This method transforms a Collection into a EntityCollection

Parameters:
col -
Returns:
Throws:
Exception

putCollection

public static EntityCollection putCollection(Collection<ItemCollection> col,
                                             List<String> itemNames)
                                      throws Exception
This method transforms a Collection into a EntityCollection If the attribute List is provided only the corresponding properties will be returned.

Parameters:
col - - collection of ItemCollection objects to be converted
itemNames - - optional list of item names to be converted. If null all items will be converted
Returns:
Throws:
Exception


Copyright © 2006-2012 Imixs Software Solutions GmbH. All Rights Reserved.