|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.grammar.GrammarIdentifierCentral
public final class GrammarIdentifierCentral
The GrammarIdentifierCentral takes control over the
process of identifying a grammar. It provides some convenience
methods as an entry point for the identification.
| Constructor Summary | |
|---|---|
GrammarIdentifierCentral()
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
addIdentifier(GrammarIdentifier id)
Adds the given grammar identifier. |
protected List<GrammarIdentifier> |
getAvailableIdentifier(GrammarType type)
Returns a List of identifiers, that have been registered and are supporting the given type. |
GrammarType |
identifyGrammar(GrammarDocument grammar,
GrammarType expectedType)
Identifies the given grammar. |
void |
setIdentifier(List<GrammarIdentifier> grammarIdenifier)
Adds the given list of idententifiers. |
boolean |
typeSupported(GrammarType type)
Checks whether the given type is supported by one of the registered identifiers or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrammarIdentifierCentral()
| Method Detail |
|---|
public GrammarType identifyGrammar(GrammarDocument grammar,
GrammarType expectedType)
throws UnsupportedFormatError
grammar - The given grammar which will be identified.expectedType - the expected grammar type
UnsupportedFormatError - If no identifier is able to identify this grammar.protected List<GrammarIdentifier> getAvailableIdentifier(GrammarType type)
type - Required type.
public boolean typeSupported(GrammarType type)
type - String representing the type
public void setIdentifier(List<GrammarIdentifier> grammarIdenifier)
grammarIdenifier - List with identifiers to add.public void addIdentifier(GrammarIdentifier id)
id - The GrammarIdentifier to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||