org.inxar.syntacs.translator
Interface TranslatorGrammar

All Superinterfaces:
Serializable
All Known Subinterfaces:
LRTranslatorGrammar

public interface TranslatorGrammar
extends Serializable

The TranslatorGrammar interface describes the symbolic components of a grammar as well as acting as a factory for Translator instances. It is a central interface as the TranslatorGrammar is responsible for instantiation of new Translator instances.


Method Summary
 String getName()
          Returns the name of the Translator.
 String getVersion()
          Returns the version number given to this grammar.
 Translator newTranslator()
          Returns a new Translator for this TranslatorGrammar having some default set of properties.
 Translator newTranslator(Properties properties)
          Returns a new Translator for this TranslatorGrammar using the given Properties.
 

Method Detail

getName

public String getName()
Returns the name of the Translator.

getVersion

public String getVersion()
Returns the version number given to this grammar.

newTranslator

public Translator newTranslator()
Returns a new Translator for this TranslatorGrammar having some default set of properties.

newTranslator

public Translator newTranslator(Properties properties)
Returns a new Translator for this TranslatorGrammar using the given Properties. The names and values of the elements in the Properties may be used to modify or communicate with the internals of the Translator instance (such as turning on debugging). The specifics reagarding the names and values of the properties are specific to the translator itself and need be documented elsewhere.