org.kuali.rice.edl.impl.xml.export
Class EdlDataExporter

java.lang.Object
  extended by org.kuali.rice.edl.impl.xml.export.EdlDataExporter
All Implemented Interfaces:
Exporter

public class EdlDataExporter
extends Object
implements Exporter

An implementation of the Exporter class which facilitates exporting of EDocLite data from the GUI.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
ExportDataSet

Constructor Summary
EdlDataExporter()
           
 
Method Summary
protected  ExportDataSet buildExportDataSet(Class<?> dataObjectClass, List<? extends Object> dataObjects)
          Builds the ExportDataSet based on the BusinessObjects passed in.
 void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream)
          This overridden method ...
 List<String> getSupportedFormats(Class<?> dataObjectClass)
          Returns a List of ExportFormats supported by this Exporter for the given DataOject class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdlDataExporter

public EdlDataExporter()
Method Detail

getSupportedFormats

public List<String> getSupportedFormats(Class<?> dataObjectClass)
Description copied from interface: Exporter
Returns a List of ExportFormats supported by this Exporter for the given DataOject class.

Specified by:
getSupportedFormats in interface Exporter
Parameters:
dataObjectClass - the class of the DataObjects being exported
Returns:
a List of supported ExportFormats

buildExportDataSet

protected ExportDataSet buildExportDataSet(Class<?> dataObjectClass,
                                           List<? extends Object> dataObjects)
Builds the ExportDataSet based on the BusinessObjects passed in.


export

public void export(Class<?> dataObjectClass,
                   List<? extends Object> dataObjects,
                   String exportFormat,
                   OutputStream outputStream)
            throws IOException,
                   ExportNotSupportedException
This overridden method ...

Specified by:
export in interface Exporter
Parameters:
dataObjectClass - the type of DataObjects being exported
exportFormat - the export format in which to export the DataObjects
outputStream - the OutputStream to write the exported data to
Throws:
IOException - if the process encounters an I/O issue
ExportNotSupportedException - if the given ExportFormat is not supported
See Also:
Exporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.