org.apache.directory.shared.asn1.ber.grammar
Interface IGrammar

All Known Implementing Classes:
AbstractGrammar

public interface IGrammar

The interface which expose common behavior of a Gramar implementer.

Author:
Apache Directory Project

Method Summary
 void executeAction(IAsn1Container asn1Container)
          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(IAsn1Container asn1Container)
                   throws DecoderException,
                          javax.naming.NamingException
This method, when called, execute an action on the current data stored in the container.

Parameters:
asn1Container - Store the data being processed.
Throws:
DecoderException - Thrown when an unrecoverable error occurs.
javax.naming.NamingException

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 © 2004-2009. All Rights Reserved.