org.apache.directory.api.asn1.ber.grammar
Class GrammarAction<C extends Asn1Container>

java.lang.Object
  extended by org.apache.directory.api.asn1.ber.grammar.GrammarAction<C>
All Implemented Interfaces:
Action<C>
Direct Known Subclasses:
AbstractReadBitString, AbstractReadInteger, AbstractReadOctetString, CheckNotNullLength

public abstract class GrammarAction<C extends Asn1Container>
extends Object
implements Action<C>

A top level grammar class that store meta informations about the actions. Those informations are not mandatory, but they can be useful for debugging.

Author:
Apache Directory Project

Field Summary
protected  String name
          The action's name
 
Constructor Summary
GrammarAction()
          A default constructor
GrammarAction(String name)
          Creates a new GrammarAction object.
 
Method Summary
 String toString()
          Prints the action's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.asn1.ber.grammar.Action
action
 

Field Detail

name

protected String name
The action's name

Constructor Detail

GrammarAction

public GrammarAction()
A default constructor


GrammarAction

public GrammarAction(String name)
Creates a new GrammarAction object.

Parameters:
name - The name of the grammar action
Method Detail

toString

public String toString()
Prints the action's name

Overrides:
toString in class Object
Returns:
The action's name


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