public final class ModelInstanceMarshaller
extends java.lang.Object
ModelInstance to a byte array.| Constructor and Description |
|---|
ModelInstanceMarshaller(StateType type)
Creates new instance
|
| Modifier and Type | Method and Description |
|---|---|
ModelInstance |
filterState(ModelInstance modelInstance)
Returns new instance of
ModelInstance with filtered data. |
ModelInstance |
getState(byte[] storedState,
ModelInstanceResourceAllocator allocator)
Returns model instance from stored state.
|
byte[] |
storeState(ModelInstance modelInstance,
MarshallerConfig config)
Filter a model instance and store it as array of bytes.
|
public ModelInstanceMarshaller(StateType type)
type - public ModelInstance filterState(ModelInstance modelInstance)
ModelInstance with filtered data.modelInstance - ModelInstance with filtered datapublic byte[] storeState(ModelInstance modelInstance, MarshallerConfig config) throws javax.xml.bind.JAXBException, java.io.IOException
modelInstance - config - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic ModelInstance getState(byte[] storedState, ModelInstanceResourceAllocator allocator) throws javax.xml.bind.JAXBException, java.io.IOException
PersistentIdAllocator for process and SimpleIdAllocator for documents.
If null null is used, it must be set later.storedState - allocator - javax.xml.bind.JAXBExceptionjava.io.IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.