cz.cuni.mff.ksi.jinfer.basicxsd.elementsexporters
Class AbstractElementsExporter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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
Generated on Fri Dec 9 00:01:25 CET 2011