pl.edu.agh.cast.backward.resources.xml
Class XMLExporter

java.lang.Object
  extended by pl.edu.agh.cast.backward.resources.xml.XMLExporter
All Implemented Interfaces:
IExporter

public class XMLExporter
extends Object
implements IExporter

Exports project to XML file.

Author:
AGH CAST Team

Constructor Summary
XMLExporter()
          Default constructor.
XMLExporter(Class<?>[] classesWithAnnotations)
          Constructor.
 
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.
 void updateXStreamAnnotataions(Class<?> clazz)
          Reads additional XStream annotations from specified class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLExporter

public XMLExporter()
Default constructor. Same as XMLExporter(null).


XMLExporter

public XMLExporter(Class<?>[] classesWithAnnotations)
Constructor.

Parameters:
classesWithAnnotations - see XStreamInitializer.createXStreamInstance(Class[])
Method Detail

export

public 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.

Specified by:
export in interface IExporter
Parameters:
projectName - project name
diagrams - list of IDiagram object to be exported
file - file where exported data will be saved
Throws:
IOException
See Also:
IExporter.export(java.lang.String, java.util.List, java.io.File)

export

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

Specified by:
export in interface IExporter
Parameters:
diagram - diagram to export
file - file to save data to
Throws:
IOException
See Also:
IExporter.export(pl.edu.agh.cast.model.visual.backward.IDiagram, java.io.File)

updateXStreamAnnotataions

public void updateXStreamAnnotataions(Class<?> clazz)
Reads additional XStream annotations from specified class.

Parameters:
clazz - class to read additional annotations from


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