sk.uniba.euromath.gene.controller
Class ExportController

java.lang.Object
  extended by sk.uniba.euromath.gene.controller.ExportController

public final class ExportController
extends Object

The primary class where all the export magic occurs.

Author:
Martin Vysny

Field Summary
 ICoordinator coordinator
          The coordinator instance.
 
Constructor Summary
ExportController(XMLAccess xmlAccess, TransformGraph graph, ICoordinator coordinator)
          Constructs the object and prepares it for document exporting.
 
Method Summary
 void export(URLDir root, String fileName)
          Exports the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinator

public final ICoordinator coordinator
The coordinator instance.

Constructor Detail

ExportController

public ExportController(XMLAccess xmlAccess,
                        TransformGraph graph,
                        ICoordinator coordinator)
Constructs the object and prepares it for document exporting.

Parameters:
xmlAccess - the document to export.
graph - transformation infos for all namespaces present in the document.
coordinator - receives the transformation info. The coordinator must already be configured to receive export parts.
Method Detail

export

public void export(URLDir root,
                   String fileName)
            throws ExportException,
                   IOException
Exports the document. Coordinator is never disposed, it must be disposed manually.

Parameters:
root - directory where the document shall be exported. May be null if not required by the coordinator.
fileName - name of the file being produced. May be null if not required by the coordinator.
Throws:
ExportException - if error occurs during the export process.
IOException - if i/o error occurs.


Copyright 2003-2003-2006 null. All Rights Reserved.