public final class ModelInstanceDumper
extends java.lang.Object
ModelInstance to a byte array.| Constructor and Description |
|---|
ModelInstanceDumper(java.util.Collection<ModelInstanceData> dataFilter,
ProcessLogDao processLogDao)
Creates new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dumpState(ModelInstance modelInstance)
Filter a model instance and dumps it in the xml format as a string.
|
byte[] |
dumpStateAsBytes(ModelInstance modelInstance)
Filter a model instance and dumps it in the xml format into byte array.
|
ModelInstance |
filterState(ModelInstance modelInstance)
Returns new instance of
ModelInstance with filtered data. |
ModelInstance |
getState(byte[] dumpedState)
Returns model instance from dumped state.
|
public ModelInstanceDumper(java.util.Collection<ModelInstanceData> dataFilter, ProcessLogDao processLogDao)
dataFilter - processLogDao - public ModelInstance filterState(ModelInstance modelInstance)
ModelInstance with filtered data.modelInstance - ModelInstance with filtered datapublic java.lang.String dumpState(ModelInstance modelInstance) throws javax.xml.bind.JAXBException, java.io.IOException
modelInstance - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic byte[] dumpStateAsBytes(ModelInstance modelInstance) throws javax.xml.bind.JAXBException, java.io.IOException
modelInstance - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic ModelInstance getState(byte[] dumpedState) throws javax.xml.bind.JAXBException, java.io.IOException
dumpedState - javax.xml.bind.JAXBExceptionjava.io.IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.