ch.elexis.exchange
Class XChangeImporter
java.lang.Object
ch.elexis.exchange.XChangeImporter
- All Implemented Interfaces:
- IDataReceiver
- Direct Known Subclasses:
- BlockImporter
public class XChangeImporter
- extends java.lang.Object
- implements IDataReceiver
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XChangeImporter
public XChangeImporter()
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 loadcontext
- 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)
Copyright 2005-2011 by Gerry Weirich, Elexis