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

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

public class XMLExporter
extends java.lang.Object
implements IExporter

Exports project to XML file.

Author:
kpietak

Constructor Summary
XMLExporter()
           
XMLExporter(java.lang.Class<?>[] classesWithAnnotations)
           
 
Method Summary
 void export(IDiagram diagram, java.io.File file)
          Exports a single IDiagram to external format and saves the output to specified file
 void export(java.lang.String projectName, java.util.List<IDiagram> diagrams, java.io.File file)
          Exports list of IDiagram objects to external format and saves the output to specified file
 void updateXStreamAnnotataions(java.lang.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()

XMLExporter

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

export

public void export(java.lang.String projectName,
                   java.util.List<IDiagram> diagrams,
                   java.io.File file)
            throws java.io.IOException
Description copied from interface: IExporter
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:
java.io.IOException

export

public void export(IDiagram diagram,
                   java.io.File file)
            throws java.io.IOException
Description copied from interface: IExporter
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:
java.io.IOException

updateXStreamAnnotataions

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

Parameters:
clazz -


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