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 List<org.imixs.workflow.ItemCollection> |
getCollection(DocumentCollection doccol)
This Method converts a
org.imixs.workflow.xml.DocumentCollection
into a List of org.imixs.workflow.ItemCollection
The method returns an empty list if the collection is empty or null |
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 DocumentCollection |
putCollection(Collection<org.imixs.workflow.ItemCollection> col)
This method transforms a Collection
|
static DocumentCollection |
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 sourceItemCollection,
List<String> itemNames)
This Method converts a
org.imixs.workflow.ItemCollection into a
XMLItemCollection
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 org.imixs.workflow.ItemCollection |
readItemCollectionFromInputStream(InputStream inputStream)
This method imports an xml entity data stream containing a singel document and returns the
ItemCollection.
|
static XMLItemCollection |
sortItemsByName(XMLItemCollection xmlItemCol)
This method sorts all items of a XMLItemCollection by item name.
|
static byte[] |
writeItemCollection(org.imixs.workflow.ItemCollection document)
This method writes a ItemCollection into a Byte array
|
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 List<org.imixs.workflow.ItemCollection> getCollection(DocumentCollection doccol)
org.imixs.workflow.xml.DocumentCollection
into a List of org.imixs.workflow.ItemCollection
The method returns an empty list if the collection is empty or nullentity - public static XMLItemCollection putItemCollection(org.imixs.workflow.ItemCollection sourceItemCollection, List<String> itemNames)
org.imixs.workflow.ItemCollection into a
XMLItemCollection
The method verifies if the values stored are basic java types. If not these values will not be converted!
sourceItemCollection - ItemCollection Object to be converteditemNames - - optional list of item names to be converted. If null all items
will be convertedpublic static XMLItemCollection sortItemsByName(XMLItemCollection xmlItemCol)
xmlItemCol - public static XMLItemCollection putItemCollection(org.imixs.workflow.ItemCollection aItemCollection)
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 convertedpublic static DocumentCollection putCollection(Collection<org.imixs.workflow.ItemCollection> col)
col - public static DocumentCollection putCollection(Collection<org.imixs.workflow.ItemCollection> col, List<String> itemNames)
col - - collection of ItemCollection objects to be converteditemNames - - optional list of item names to be converted. If null all items
will be convertedpublic static List<org.imixs.workflow.ItemCollection> readCollectionFromInputStream(InputStream inputStream) throws JAXBException, IOException
inputStream - xml input streamJAXBExceptionIOExceptionpublic static org.imixs.workflow.ItemCollection readItemCollectionFromInputStream(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 streamJAXBExceptionIOExceptionpublic static byte[] writeItemCollection(org.imixs.workflow.ItemCollection document)
throws JAXBException,
IOException
inputStream - xml input streamJAXBExceptionIOExceptionCopyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.