public class SEHRObjectHandler extends Module implements ModuleInterface
SEHR data objects are containers for storing a data object and a class (the
handler) to process the data. There are additional fields with informations
like creation, source, access rights etc.
This is a default handler that is loaded to handle very basic use-cases on
SEHR data objects.
N.B.: To use another handler (processor) set another class using
SEHRDataObject.setObjClass(String)
.
dataobject, isTerminated, Log, sdo, sehrds
Constructor and Description |
---|
SEHRObjectHandler() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.lang.Object o,
SEHRDataSource ds)
Abstract method to initialize a handler for a given object.
|
static void |
ObjectToXMLFile(java.lang.Object o,
java.io.File xmlOutFile) |
void |
run()
Abstract method to process/run the module To be overwritten by the
module handler to process data
|
void |
terminate()
Abstract method to terminate the module May be overwritten by the final
module handler
|
public void initialize(java.lang.Object o, SEHRDataSource ds)
Module
May be overriden by final module object
initialize
in interface ModuleInterface
initialize
in class Module
public void run()
Module
To be overwritten by the module handler to process data
run
in interface ModuleInterface
run
in class Module
public void terminate()
Module
May be overwritten by the final module handler
terminate
in interface ModuleInterface
terminate
in class Module
public static void ObjectToXMLFile(java.lang.Object o, java.io.File xmlOutFile) throws GenericSEHRException
GenericSEHRException