jInfer

cz.cuni.mff.ksi.jinfer.base.interfaces.inference
Interface SchemaGenerator

All Superinterfaces:
Capabilities, NamedModule
All Known Implementing Classes:
SchemaGeneratorImpl, SchemaGeneratorImpl, TwoStepPseudoExporter

public interface SchemaGenerator
extends NamedModule, Capabilities

Interface of a SchemaGenerator module.

Schema Generator is the last module in the inference process. Its task is to transform the simplified grammar (still a list of rules) into a textual schema representation. Schema may be in any format or language, such as DTD or XSD. After the schema is created, it is sent to the Runner module via the callback.


Method Summary
 void start(List<Element> grammar, SchemaGeneratorCallback callback)
          Start the schema export process.
 
Methods inherited from interface cz.cuni.mff.ksi.jinfer.base.interfaces.NamedModule
getDisplayName, getModuleDescription, getName
 
Methods inherited from interface cz.cuni.mff.ksi.jinfer.base.interfaces.Capabilities
getCapabilities
 

Method Detail

start

void start(List<Element> grammar,
           SchemaGeneratorCallback callback)
           throws InterruptedException
Start the schema export process. This method is called by the Runner module as the last stage of inference.

Parameters:
grammar - Simplified grammar to be exported as XML schema.
callback - A callback object. After the schema is created, it must be returned to the caller by invoking the finished() method on this object.
Throws:
InterruptedException

jInfer

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