pl.edu.agh.cast.backward.resources
Interface IExporter

All Known Implementing Classes:
XMLExporter

public interface IExporter

Interface for project and diagram exporters, which can save the diagrams list (whole project) or a single diagram in format which is understandable between different instances and versions of system.

Author:
AGH CAST Team

Method Summary
 void export(IDiagram diagram, File file)
          Exports a single IDiagram to external format and saves the output to specified file.
 void export(String projectName, List<IDiagram> diagrams, File file)
          Exports list of IDiagram objects to external format and saves the output to specified file.
 

Method Detail

export

void export(String projectName,
            List<IDiagram> diagrams,
            File file)
            throws IOException
Exports list of IDiagram objects to external format and saves the output to specified file.

Parameters:
projectName - project name
diagrams - list of IDiagram object to be exported
file - file where exported data will be saved
Throws:
IOException

export

void export(IDiagram diagram,
            File file)
            throws IOException
Exports a single IDiagram to external format and saves the output to specified file.

Parameters:
diagram - diagram to export
file - file to save data to
Throws:
IOException


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.