org.apache.directory.shared.ldap.codec
Class LdapMessageGrammar

java.lang.Object
  extended by org.apache.directory.shared.asn1.ber.grammar.AbstractGrammar
      extended by org.apache.directory.shared.ldap.codec.LdapMessageGrammar
All Implemented Interfaces:
Grammar

public final class LdapMessageGrammar
extends AbstractGrammar

This class implements the LdapMessage message. All the actions are declared in this class. As it is a singleton, these declaration are only done once. If an action is to be added or modified, this is where the work is to be done !

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.ber.grammar.AbstractGrammar
transitions
 
Method Summary
static Grammar getInstance()
          Get the instance of this grammar
static String getType(byte[] bytes)
          Build an AttributeType froma byte array.
 
Methods inherited from class org.apache.directory.shared.asn1.ber.grammar.AbstractGrammar
executeAction, getName, getTransition, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Grammar getInstance()
Get the instance of this grammar

Returns:
An instance on the LdapMessage Grammar

getType

public static String getType(byte[] bytes)
Build an AttributeType froma byte array. An AttributeType contains only chars within [0-9][a-z][A-Z][-.].

Parameters:
bytes - The bytes containing the AttributeType
Returns:
The AttributeType as a String


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