com.infodesire.infobit.external.impl
Class SimpleExporter

java.lang.Object
  |
  +--com.infodesire.infobit.external.impl.SimpleExporter
All Implemented Interfaces:
InfobitExporter

public class SimpleExporter
extends java.lang.Object
implements InfobitExporter

Provides a straight-forward implementation to convert infobits to XML (as defined by InfobitExporter.

Version:
$Revision: 1.3 $
Author:
peter2

Constructor Summary
SimpleExporter()
           
 
Method Summary
 void export(java.util.Collection infobits, java.io.Writer writer)
          Converts the specified set of infobits into an XML representation.
 InfobitManager getManager()
          Gets the Manager attribute of the VelocityRenderer object
 void init()
          Not used.
 void setManager(InfobitManager manager)
          Sets the Manager attribute of the VelocityRenderer object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExporter

public SimpleExporter()
Method Detail

getManager

public InfobitManager getManager()
Gets the Manager attribute of the VelocityRenderer object

Specified by:
getManager in interface InfobitExporter
Returns:
The Manager value

setManager

public void setManager(InfobitManager manager)
Sets the Manager attribute of the VelocityRenderer object

Specified by:
setManager in interface InfobitExporter
Parameters:
manager - The new Manager value

init

public void init()
Not used.

Specified by:
init in interface InfobitExporter

export

public void export(java.util.Collection infobits,
                   java.io.Writer writer)
            throws InfobitException
Converts the specified set of infobits into an XML representation.

Specified by:
export in interface InfobitExporter
Parameters:
infobits - The infobits to externalize. Infobits are externalized in the order obtained from than argument. Collection of Infobit.
writer - The destination where to write the XML representation of infobits to
Throws:
InfobitException - Description of Exception


Copyright © 2003 Information Desire GmbH. All Rights Reserved.