public final class ModelInstanceDumper extends Object
ModelInstance
to a byte array.Constructor and Description |
---|
ModelInstanceDumper(Collection<ModelInstanceData> dataFilter,
ProcessLogDao processLogDao)
Creates new instance
|
Modifier and Type | Method and Description |
---|---|
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(Collection<ModelInstanceData> dataFilter, ProcessLogDao processLogDao)
dataFilter
- processLogDao
- public ModelInstance filterState(ModelInstance modelInstance)
ModelInstance
with filtered data.modelInstance
- ModelInstance
with filtered datapublic String dumpState(ModelInstance modelInstance) throws javax.xml.bind.JAXBException, IOException
modelInstance
- javax.xml.bind.JAXBException
IOException
public byte[] dumpStateAsBytes(ModelInstance modelInstance) throws javax.xml.bind.JAXBException, IOException
modelInstance
- javax.xml.bind.JAXBException
IOException
public ModelInstance getState(byte[] dumpedState) throws javax.xml.bind.JAXBException, IOException
dumpedState
- javax.xml.bind.JAXBException
IOException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.