Package org.apache.directory.api.dsmlv2
Interface Grammar
-
- All Known Implementing Classes:
AbstractGrammar
,Dsmlv2Grammar
,Dsmlv2ResponseGrammar
public interface Grammar
The interface which expose common behavior of a Grammar implementer.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeAction(Dsmlv2Container container)
This method, when called, executes an action on the current data stored in the container.String
getName()
Get the grammar nameEnum<Dsmlv2StatesEnum>[]
getStatesEnum()
Get the statesEnum for the current grammarvoid
setName(String name)
Set the grammar's name
-
-
-
Method Detail
-
executeAction
void executeAction(Dsmlv2Container container) throws org.xmlpull.v1.XmlPullParserException, IOException
This method, when called, executes an action on the current data stored in the container.- Parameters:
container
- the DSML container- Throws:
org.xmlpull.v1.XmlPullParserException
- when an unrecoverable error occursIOException
- when an IO error occurs
-
getStatesEnum
Enum<Dsmlv2StatesEnum>[] getStatesEnum()
Get the statesEnum for the current grammar- Returns:
- The specific States Enum for the current grammar
-
-