org.apache.directory.api.asn1.ber.grammar
Interface Grammar<C extends Asn1Container>

All Known Implementing Classes:
AbstractGrammar

public interface Grammar<C extends Asn1Container>

The interface which expose common behavior of a Grammar implementer.

Author:
Apache Directory Project

Method Summary
 void executeAction(C asn1Container)
          This method, when called, execute an action on the current data stored in the container.
 String getName()
          Get the grammar name
 void setName(String name)
          Set the grammar's name
 

Method Detail

executeAction

void executeAction(C asn1Container)
                   throws org.apache.directory.api.asn1.DecoderException
This method, when called, execute an action on the current data stored in the container.

Parameters:
asn1Container - Store the data being processed.
Throws:
org.apache.directory.api.asn1.DecoderException - Thrown when an unrecoverable error occurs.

getName

String getName()
Get the grammar name

Returns:
Return the grammar's name

setName

void setName(String name)
Set the grammar's name

Parameters:
name - The grammar name


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.