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 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<ItemCollection> col)
This method transforms a Collection
|
static EntityCollection |
putCollection(Collection<ItemCollection> col,
List<String> itemNames)
This method transforms a Collection
|
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. |
static List<ItemCollection> |
readCollection(byte[] byteInput)
This method imports an xml entity data byte array and returns a List of
ItemCollection objects.
|
static List<ItemCollection> |
readCollectionFromInputStream(InputStream inputStream)
This method imports an xml entity data stream and returns a List of
ItemCollection objects.
|
static 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 ItemCollection getItemCollection(XMLItemCollection entity)
org.imixs.workflow.xml.XMLItemCollection
into a
org.imixs.workflow.ItemCollection
Returns null if entity ==
nullentity
- public static XMLItemCollection putItemCollection(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 convertedException
public static XMLItemCollection sortItemsByName(XMLItemCollection xmlItemCol)
xmlItemCol
- public static XMLItemCollection putItemCollection(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 convertedException
public static EntityCollection putCollection(Collection<ItemCollection> col) throws Exception
col
- Exception
public static EntityCollection putCollection(Collection<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 convertedException
public static List<ItemCollection> readCollectionFromInputStream(InputStream inputStream) throws JAXBException, IOException
inputStream
- xml input streamJAXBException
IOException
public static List<ItemCollection> readCollection(byte[] byteInput) throws JAXBException, IOException
inputStream
- xml input streamJAXBException
IOException
public static ItemCollection readItemCollection(byte[] byteInput) throws JAXBException, IOException
inputStream
- xml input streamJAXBException
IOException
Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.