Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.exchange
Class BlockExporter

java.lang.Object
  extended by ch.elexis.exchange.XChangeExporter
      extended by ch.elexis.exchange.BlockExporter
All Implemented Interfaces:
IDataSender

public class BlockExporter
extends XChangeExporter


Constructor Summary
BlockExporter()
           
 
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
 
Methods inherited from class ch.elexis.exchange.XChangeExporter
addBinary, addContact, addPatient, getContainer, getDocument, getRoot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockExporter

public BlockExporter()
Method Detail

canHandle

public boolean canHandle(java.lang.Class<? extends PersistentObject> clazz)
Description copied from interface: IDataSender
Ask if this IDataSender can handle a certain type

Specified by:
canHandle in interface IDataSender
Overrides:
canHandle in class XChangeExporter
Parameters:
clazz - the class in question
Returns:
true if it can handle objects of that class.

finalizeExport

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

Throws:
XChangeException

store

public XChangeElement store(java.lang.Object output)
                     throws XChangeException
Description copied from interface: IDataSender
Prepare an object for export

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

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis