pl.edu.agh.cast.resources.xml
Class XMLImporter

java.lang.Object
  extended by pl.edu.agh.cast.resources.xml.XMLImporter
All Implemented Interfaces:
IImporter

public class XMLImporter
extends java.lang.Object
implements IImporter

Imports a project from XML file

Author:
kpietak
See Also:
XMLExporter

Constructor Summary
XMLImporter()
           
XMLImporter(java.lang.Class<?>[] classesWithAnnotations)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLImporter

public XMLImporter()

XMLImporter

public XMLImporter(java.lang.Class<?>[] classesWithAnnotations)
Method Detail

importProject

public IProjectContainer importProject(java.io.File file)
                                throws java.io.IOException
Description copied from interface: IImporter
Imports project (list of IDiagram objects) from specified file

Specified by:
importProject in interface IImporter
Parameters:
file - - file a project is read from
Returns:
IProjectContainer - embed project
Throws:
java.io.IOException

importDiagramSettings

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

Specified by:
importDiagramSettings in interface IImporter
Returns:
Throws:
java.io.IOException

importDiagram

public IDiagram importDiagram(java.io.File file)
                       throws java.io.IOException
Description copied from interface: IImporter
Imports a diagram from specified file

Specified by:
importDiagram in interface IImporter
Returns:
Throws:
java.io.IOException


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