Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.exchange
Class XChangeImporter

java.lang.Object
  extended by ch.elexis.exchange.XChangeImporter
All Implemented Interfaces:
IDataReceiver
Direct Known Subclasses:
BlockImporter

public class XChangeImporter
extends java.lang.Object
implements IDataReceiver


Constructor Summary
XChangeImporter()
           
 
Method Summary
 void addBinary(java.lang.String id, byte[] cnt)
           
 Result finalizeImport()
          end of the input operation. can be used for cleanup.
 IExchangeContributor findImportHandler(XChangeElement el)
          Find the registered Data handler that matches best the given element
 XChangeContainer getContainer()
           
 Result<java.lang.Object> load(Element input, java.lang.Object context)
          load an Object from an XML stream
 boolean load(java.lang.String input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XChangeImporter

public XChangeImporter()
Method Detail

finalizeImport

public Result finalizeImport()
Description copied from interface: IDataReceiver
end of the input operation. can be used for cleanup. The IDataReceiver becomes invalid after finalize

Specified by:
finalizeImport in interface IDataReceiver
Returns:
ok on success.

load

public Result<java.lang.Object> load(Element input,
                                     java.lang.Object context)
Description copied from interface: IDataReceiver
load an Object from an XML stream

Specified by:
load in interface IDataReceiver
Parameters:
input - the Element to load
context - the context to put the element
Returns:
the created object on success or an error message

findImportHandler

public IExchangeContributor findImportHandler(XChangeElement el)
Find the registered Data handler that matches best the given element

Parameters:
el - Element o be imported
Returns:
the best matching handler or null if no handler exists at all for the given data type

addBinary

public void addBinary(java.lang.String id,
                      byte[] cnt)

getContainer

public XChangeContainer getContainer()

load

public boolean load(java.lang.String input)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis