public class XMLItemCollectionAdapter extends Object
org.imixs.workflow.xml.XMLItemCollection into a
org.imixs.workflow.ItemCollection and reverseItemCollection| Constructor and Description |
|---|
XMLItemCollectionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
static org.imixs.workflow.ItemCollection |
getItemCollection(XMLItemCollection entity)
This Method converts a
org.imixs.workflow.xml.XMLItemCollection into a
org.imixs.workflow.ItemCollection Returns null if entity ==
null |
static EntityCollection |
putCollection(Collection<org.imixs.workflow.ItemCollection> col)
This method transforms a Collection
|
static EntityCollection |
putCollection(Collection<org.imixs.workflow.ItemCollection> col,
List<String> itemNames)
This method transforms a Collection
|
static XMLItemCollection |
putItemCollection(org.imixs.workflow.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(org.imixs.workflow.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. |
static List<org.imixs.workflow.ItemCollection> |
readCollection(byte[] byteInput)
This method imports an xml entity data byte array and returns a List of
ItemCollection objects.
|
static List<org.imixs.workflow.ItemCollection> |
readCollectionFromInputStream(InputStream inputStream)
This method imports an xml entity data stream and returns a List of
ItemCollection objects.
|
static org.imixs.workflow.ItemCollection |
readItemCollection(byte[] byteInput)
This method imports a single XMLItemCollection and returns the
ItemCollection object.
|
static XMLItemCollection |
sortItemsByName(XMLItemCollection xmlItemCol)
This method sorts all items of a XMLItemCollection by item name.
|
public static org.imixs.workflow.ItemCollection getItemCollection(XMLItemCollection entity)
org.imixs.workflow.xml.XMLItemCollection into a
org.imixs.workflow.ItemCollection Returns null if entity ==
nullentity - public static XMLItemCollection putItemCollection(org.imixs.workflow.ItemCollection aItemCollection, List<String> itemNames) throws Exception
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!
aItemCollection - Collection Object to be converteditemNames - - optional list of item names to be converted. If null all
items will be convertedExceptionpublic static XMLItemCollection sortItemsByName(XMLItemCollection xmlItemCol)
xmlItemCol - public static XMLItemCollection putItemCollection(org.imixs.workflow.ItemCollection aItemCollection) throws Exception
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!
aItemCollection - Collection Object to be convertedExceptionpublic static EntityCollection putCollection(Collection<org.imixs.workflow.ItemCollection> col) throws Exception
col - Exceptionpublic static EntityCollection putCollection(Collection<org.imixs.workflow.ItemCollection> col, List<String> itemNames) throws Exception
col - - collection of ItemCollection objects to be converteditemNames - - optional list of item names to be converted. If null all
items will be convertedExceptionpublic static List<org.imixs.workflow.ItemCollection> readCollectionFromInputStream(InputStream inputStream) throws JAXBException, IOException
inputStream - xml input streamJAXBExceptionIOExceptionpublic static List<org.imixs.workflow.ItemCollection> readCollection(byte[] byteInput) throws JAXBException, IOException
inputStream - xml input streamJAXBExceptionIOExceptionpublic static org.imixs.workflow.ItemCollection readItemCollection(byte[] byteInput)
throws JAXBException,
IOException
inputStream - xml input streamJAXBExceptionIOExceptionCopyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.