jInfer

cz.cuni.mff.ksi.jinfer.twostep
Class TwoStepPseudoExporter

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.twostep.TwoStepPseudoExporter
All Implemented Interfaces:
Capabilities, SchemaGenerator, NamedModule

public class TwoStepPseudoExporter
extends Object
implements SchemaGenerator

Exporter to DTD-like format but without employing any DTD restrictions. It simply exports ELEMENT sth (regexp) and ATTLIST sth (each attribute). The format of export may be changed for debugging purposes of inferring method. It is here only for debugging purposes.


Field Summary
static String DISPLAY_NAME
          Name presented to user in dialogs.
static String NAME
          Name of this module.
 
Constructor Summary
TwoStepPseudoExporter()
           
 
Method Summary
 List<String> getCapabilities()
          Returns the list of capabilities (strings) of this module.
 String getDisplayName()
          Returns a user friendly name of the module.
 String getModuleDescription()
          Returns the information about this module's inner workings.
 String getName()
          Returns a user friendly yet unique name of the module.
 void start(List<Element> grammar, SchemaGeneratorCallback callback)
          Start the schema export process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Name of this module.

See Also:
Constant Field Values

DISPLAY_NAME

public static final String DISPLAY_NAME
Name presented to user in dialogs.

See Also:
Constant Field Values
Constructor Detail

TwoStepPseudoExporter

public TwoStepPseudoExporter()
Method Detail

getName

public String getName()
Description copied from interface: NamedModule
Returns a user friendly yet unique name of the module.

Specified by:
getName in interface NamedModule
Returns:
Unique module name.

getModuleDescription

public String getModuleDescription()
Description copied from interface: NamedModule
Returns the information about this module's inner workings. Most of the time will be equal to a call to NamedModule.getDisplayName(), but if the module for example consists of more sub-modules, their names should be listed here.

Specified by:
getModuleDescription in interface NamedModule
Returns:
String describing inner structure of the module.

getCapabilities

public List<String> getCapabilities()
Description copied from interface: Capabilities
Returns the list of capabilities (strings) of this module.

Specified by:
getCapabilities in interface Capabilities
Returns:
List of capability names.

start

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

Specified by:
start in interface SchemaGenerator
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

getDisplayName

public String getDisplayName()
Description copied from interface: NamedModule
Returns a user friendly name of the module. This name is not neccessary unique.

Specified by:
getDisplayName in interface NamedModule
Returns:
Displayable module name.

jInfer

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