de.cau.cs.kieler.kiml.export
Class ExportManager

java.lang.Object
  extended by de.cau.cs.kieler.kiml.export.ExportManager

public final class ExportManager
extends Object

A singleton class for accessing graph export functionality.

Rating red

Method Summary
 void addExporter(AbstractExporter exp)
          Registers a graph exporter.
 List<AbstractExporter> getExporter()
          Returns all registered exporters.
 AbstractExporter getExporterByName(String name)
          Returns the exporter with the given name or null if no such exporter exists.
 String[] getExporterNames()
          Returns an array containing the names of all registered exporters.
static ExportManager getInstance()
          Returns the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExportManager getInstance()
Returns the singleton instance.

Returns:
the singleton instance

addExporter

public void addExporter(AbstractExporter exp)
Registers a graph exporter.

Parameters:
exp - the exporter

getExporter

public List<AbstractExporter> getExporter()
Returns all registered exporters.

Returns:
a list of registered exporter

getExporterNames

public String[] getExporterNames()
Returns an array containing the names of all registered exporters.

Returns:
an array containing the names of registered exporters

getExporterByName

public AbstractExporter getExporterByName(String name)
Returns the exporter with the given name or null if no such exporter exists.

Parameters:
name - the exporters name
Returns:
the exporter or null if no exporter with the given name exists