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<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 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<ItemCollection> col)
This method transforms a Collection
|
static DocumentCollection |
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 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<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 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(ItemCollection document)
This method writes a ItemCollection into a Byte array
|
public static ItemCollection getItemCollection(XMLItemCollection entity)
org.imixs.workflow.xml.XMLItemCollection
into a org.imixs.workflow.ItemCollection
Returns null if entity
== nullentity
- public static List<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(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(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<ItemCollection> col)
col
- public static DocumentCollection putCollection(Collection<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<ItemCollection> readCollectionFromInputStream(InputStream inputStream) throws JAXBException, IOException
inputStream
- xml input streamJAXBException
IOException
public static ItemCollection readItemCollectionFromInputStream(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
public static byte[] writeItemCollection(ItemCollection document) throws JAXBException, IOException
inputStream
- xml input streamJAXBException
IOException
Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.