org.apache.directory.shared.asn1.ber
Interface IAsn1Container

All Known Implementing Classes:
AbstractContainer

public interface IAsn1Container

Every ASN1 container must implement this interface.

Author:
Apache Directory Project

Method Summary
 TLV getCurrentTLV()
          Get the currentTLV
 IGrammar getGrammar()
          Get the grammar
 TLV getParentTLV()
           
 int getState()
          Get the current grammar state
 IStates getStates()
           
 int getTransition()
          Get the transition
 void grammarEndAllowed(boolean grammarEndAllowed)
          Set the flag to allow a end transition
 boolean isGrammarEndAllowed()
          Check that we can have a end state after this transition
 void setCurrentTLV(TLV tlv)
          Set the current TLV
 void setParentTLV(TLV parentTLV)
          Set the parent TLV
 void setState(int state)
          Set the new current state
 void setTransition(int transition)
          Update the transition from a state to another
 

Method Detail

getState

public int getState()
Get the current grammar state

Returns:
Returns the current grammar state

setState

public void setState(int state)
Set the new current state

Parameters:
state - The new state

setCurrentTLV

public void setCurrentTLV(TLV tlv)
Set the current TLV

Parameters:
tlv - The current TLV

getCurrentTLV

public TLV getCurrentTLV()
Get the currentTLV

Returns:
Returns the current TLV being decoded

getGrammar

public IGrammar getGrammar()
Get the grammar

Returns:
Returns the grammar used to decode a LdapMessage.

getTransition

public int getTransition()
Get the transition

Returns:
Returns the transition from the previous state to the new state

setTransition

public void setTransition(int transition)
Update the transition from a state to another

Parameters:
transition - The transition to set

getStates

public IStates getStates()
Returns:
Returns the states.

getParentTLV

public TLV getParentTLV()
Returns:
get the parent TLV.

setParentTLV

public void setParentTLV(TLV parentTLV)
Set the parent TLV


isGrammarEndAllowed

public boolean isGrammarEndAllowed()
Check that we can have a end state after this transition

Returns:
true if this can be the last transition

grammarEndAllowed

public void grammarEndAllowed(boolean grammarEndAllowed)
Set the flag to allow a end transition



Copyright © 2004-2008 null. All Rights Reserved.