pl.edu.agh.cast.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:
kpietak
See Also:
IExporter

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

Method Detail

importProject

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

Parameters:
file - - file a project is read from
Returns:
IProjectContainer - embed project
Throws:
java.io.IOException

importDiagramSettings

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

Parameters:
file -
Returns:
Throws:
java.io.IOException

importDiagram

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

Parameters:
file -
Returns:
Throws:
java.io.IOException


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.