jInfer

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

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters.AbstractElementsExporter
Direct Known Subclasses:
GlobalElementsExporter, RootElementExporter

public abstract class AbstractElementsExporter
extends Object

Basic implementation of elements exporter. Specific exporters should be derived from this class and can use already implemented logic or implement it on their own.


Field Summary
protected  Indentator indentator
           
protected static org.apache.log4j.Logger LOG
           
protected  PreprocessingResult preprocessingResult
           
protected  String typenamePostfix
           
protected  String typenamePrefix
           
 
Constructor Summary
AbstractElementsExporter(PreprocessingResult preprocessingResult, Indentator indentator)
          Constructor.
 
Method Summary
protected  void processElement(Element element, RegexpInterval interval)
          Processes element.
protected  void processElementContent(Element element)
           
abstract  void run()
          Performs export.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG

preprocessingResult

protected final PreprocessingResult preprocessingResult

indentator

protected final Indentator indentator

typenamePrefix

protected final String typenamePrefix

typenamePostfix

protected final String typenamePostfix
Constructor Detail

AbstractElementsExporter

public AbstractElementsExporter(PreprocessingResult preprocessingResult,
                                Indentator indentator)
Constructor.

Parameters:
preprocessingResult - Result of preprocessing of input grammar.
indentator - Instance of Indentator to be used to indent output.
Method Detail

run

public abstract void run()
                  throws InterruptedException
Performs export. Has to be implemented in derived exporters.

Throws:
InterruptedException

processElement

protected void processElement(Element element,
                              RegexpInterval interval)
                       throws InterruptedException
Processes element. If its type is defined globally simply uses it. Otherwise defines it inline.

Parameters:
element -
interval -
Throws:
InterruptedException

processElementContent

protected void processElementContent(Element element)
                              throws InterruptedException
Throws:
InterruptedException

jInfer

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