Sautrela

edu.gtts.sautrela.wfsa
Interface WFSA.Factory

Enclosing interface:
WFSA<S extends State,Y extends Symbol,T extends Transition<S,Y>>

public static interface WFSA.Factory

WFSA instantiation Factory. Any class that implements the WFSA interface, in order to be instanciable by Sautrela, MUST have a static field that implements this Factory subinterface. The name of such field could be anyone, as it will be found and checked by instrospection at run time.

Author:
mpenagar

Method Summary
 WFSA getInstance(org.xml.sax.InputSource is)
          Creates a WFSA using an XML description found via an InputSource
 WFSA getInstance(org.xml.sax.InputSource is, Alphabet alphabet)
          Creates a WFSA using a XML description found via an InputSource and an existing Alphabet.
 

Method Detail

getInstance

WFSA getInstance(org.xml.sax.InputSource is)
                 throws javax.xml.parsers.ParserConfigurationException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Creates a WFSA using an XML description found via an InputSource

Parameters:
is - the InputSource used to locate the XML description
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

getInstance

WFSA getInstance(org.xml.sax.InputSource is,
                 Alphabet alphabet)
                 throws javax.xml.parsers.ParserConfigurationException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Creates a WFSA using a XML description found via an InputSource and an existing Alphabet.

Parameters:
is - the InputSource used to locate the XML description
alphabet - SHOULD BE NULL
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

Sautrela