jInfer

cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters
Class RootElementExporter

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters.AbstractElementsExporter
      extended by cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters.RootElementExporter

public final class RootElementExporter
extends AbstractElementsExporter

Exporter which retrieves the root element from a preprocessing result and performs recursive exportation. The whole element subtree is exported either by defining elements "inline" or by using globally defined types. Elements which will reference global types are also retrieved from the result of preprocessing.


Field Summary
 
Fields inherited from class cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters.AbstractElementsExporter
indentator, LOG, preprocessingResult, typenamePostfix, typenamePrefix
 
Constructor Summary
RootElementExporter(PreprocessingResult preprocessingResult, Indentator indentator)
          Constructor.
 
Method Summary
 void run()
          Performs export.
 
Methods inherited from class cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters.AbstractElementsExporter
processElement, processElementContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootElementExporter

public RootElementExporter(PreprocessingResult preprocessingResult,
                           Indentator indentator)
Constructor.

Parameters:
preprocessingResult - Result of preprocessing to retrieve the root elements and global elements.
indentator - Instance of Indentator to be used to indent output.
Method Detail

run

public void run()
         throws InterruptedException
Description copied from class: AbstractElementsExporter
Performs export. Has to be implemented in derived exporters.

Specified by:
run in class AbstractElementsExporter
Throws:
InterruptedException

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011