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

All Known Implementing Classes:
XMLImporter

public interface IImporter

Interface for project and diagram importers, which can load the project (a list of diagrams) or a single diagram even between different instances and versions of the system.

Author:
AGH CAST Team
See Also:
IExporter

Method Summary
 IDiagram importDiagram(File file)
          Imports a diagram from specified file.
 IDiagramSettings importDiagramSettings(File file)
          Imports diagram settings from specified file.
 IProjectContainer importProject(File file)
          Imports project (list of IDiagram objects) from specified file.
 

Method Detail

importProject

IProjectContainer importProject(File file)
                                throws IOException
Imports project (list of IDiagram objects) from specified file.

Parameters:
file - file the project is read from
Returns:
IProjectContainer - embedded project
Throws:
IOException

importDiagramSettings

IDiagramSettings importDiagramSettings(File file)
                                       throws IOException
Imports diagram settings from specified file. Must not read the whole diagram from file for performance reasons.

Parameters:
file - file to read diagram settings from
Returns:
diagram settings read from the file
Throws:
IOException

importDiagram

IDiagram importDiagram(File file)
                       throws IOException
Imports a diagram from specified file.

Parameters:
file - file to read diagram from
Returns:
diagram read from the file
Throws:
IOException


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