public abstract class AbstractGrammar extends Object implements Grammar
Constructor and Description |
---|
AbstractGrammar() |
Modifier and Type | Method and Description |
---|---|
void |
executeAction(Dsmlv2Container container)
This method, when called, executes an action on the current data stored in
the container.
|
String |
getName()
Returns the grammar's name
|
Enum<Dsmlv2StatesEnum>[] |
getStatesEnum()
Gets the states of the current grammar
|
GrammarTransition |
getTransition(Enum<Dsmlv2StatesEnum> state,
Tag tag)
Gets the transition associated with the state and tag
|
void |
setName(String name)
Sets the grammar's name
|
public AbstractGrammar()
public GrammarTransition getTransition(Enum<Dsmlv2StatesEnum> state, Tag tag)
state
- The current statetag
- The current tagpublic Enum<Dsmlv2StatesEnum>[] getStatesEnum()
getStatesEnum
in interface Grammar
public void executeAction(Dsmlv2Container container) throws org.xmlpull.v1.XmlPullParserException, IOException
executeAction
in interface Grammar
container
- the DSML containerorg.xmlpull.v1.XmlPullParserException
- when an unrecoverable error occursIOException
- when an IO error occursCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.