|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractGrammar
public abstract class AbstractGrammar
The abstract Grammar which is the Mother of all the grammars. It contains the transitions table.
| Field Summary | |
|---|---|
protected String |
name
The grammar name |
protected Enum<Dsmlv2StatesEnum>[] |
statesEnum
The grammar's states |
protected HashMap<Tag,GrammarTransition>[] |
transitions
Table of transitions. |
| Constructor Summary | |
|---|---|
AbstractGrammar()
|
|
| Method Summary | |
|---|---|
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 |
void |
setStatesEnum(Enum<Dsmlv2StatesEnum>[] statesEnum)
Set the states for this grammar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap<Tag,GrammarTransition>[] transitions
protected String name
protected Enum<Dsmlv2StatesEnum>[] statesEnum
| Constructor Detail |
|---|
public AbstractGrammar()
| Method Detail |
|---|
public String getName()
getName in interface Grammarpublic void setName(String name)
setName in interface Grammarname - the name to set
public GrammarTransition getTransition(Enum<Dsmlv2StatesEnum> state,
Tag tag)
state - The current statetag - The current tag
public Enum<Dsmlv2StatesEnum>[] getStatesEnum()
getStatesEnum in interface Grammarpublic void setStatesEnum(Enum<Dsmlv2StatesEnum>[] statesEnum)
statesEnum - The statesEnum to set.
public void executeAction(Dsmlv2Container container)
throws org.xmlpull.v1.XmlPullParserException,
IOException
executeAction in interface Grammarcontainer - the DSML container
org.xmlpull.v1.XmlPullParserException - when an unrecoverable error occurs
IOException - when an IO error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||