org.apache.directory.shared.dsmlv2
Interface IGrammar

All Known Implementing Classes:
AbstractGrammar, Dsmlv2Grammar, Dsmlv2ResponseGrammar

public interface IGrammar

The interface which expose common behavior of a Gramar implementer.


Method Summary
 void executeAction(Dsmlv2Container container)
          This method, when called, execute an action on the current data stored in the container.
 java.lang.String getName()
          Get the grammar name
 IStates getStatesEnum()
          Get the statesEnum for the current grammar
 void setName(java.lang.String name)
          Set the grammar's name
 

Method Detail

executeAction

void executeAction(Dsmlv2Container container)
                   throws org.xmlpull.v1.XmlPullParserException,
                          java.io.IOException
This method, when called, execute an action on the current data stored in the container.

Parameters:
container - the DSML container
Throws:
org.xmlpull.v1.XmlPullParserException - Thrown when an unrecoverable error occurs.
java.io.IOException

getName

java.lang.String getName()
Get the grammar name

Returns:
Return the grammar's name

getStatesEnum

IStates getStatesEnum()
Get the statesEnum for the current grammar

Returns:
The specific States Enum for the current grammar

setName

void setName(java.lang.String name)
Set the grammar's name

Parameters:
name - The grammar name


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.