Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.exchange
Interface IDataSender

All Known Implementing Classes:
BlockExporter, MedicomSender, XChangeExporter

public interface IDataSender

A generic mediator between Elexis Objects and XML-Files. Any number of Objects can be sent to the IDataSender, finishing with a call to finalizeExport. The ultimate destination depends on the implementation

Author:
Gerry

Method Summary
 boolean canHandle(java.lang.Class<? extends PersistentObject> clazz)
          Ask if this IDataSender can handle a certain type
 void finalizeExport()
          Send the stored objects to this IDataSender's ultimate destinaion (e.g. file, URL).
 XChangeElement store(java.lang.Object output)
          Prepare an object for export
 

Method Detail

store

XChangeElement store(java.lang.Object output)
                     throws XChangeException
Prepare an object for export

Parameters:
output - an object this IDataSender can handle
Returns:
the XML element created
Throws:
XChangeException - if an error occurred

finalizeExport

void finalizeExport()
                    throws XChangeException
Send the stored objects to this IDataSender's ultimate destinaion (e.g. file, URL). The IDataTransfer is invalid after finalizing.

Throws:
XChangeException

canHandle

boolean canHandle(java.lang.Class<? extends PersistentObject> clazz)
Ask if this IDataSender can handle a certain type

Parameters:
clazz - the class in question
Returns:
true if it can handle objects of that class.

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis