org.apache.directory.api.dsmlv2
Interface Container

All Known Implementing Classes:
Dsmlv2Container

public interface Container

This interface represents a container that can be used by the parser to store parsed information

Author:
Apache Directory Project

Method Summary
 Enum<Dsmlv2StatesEnum> getState()
          Gets the current grammar state
 Enum<Dsmlv2StatesEnum>[] getStates()
           
 Enum<Dsmlv2StatesEnum> getTransition()
          Gets the transition
 void setState(Enum<Dsmlv2StatesEnum> state)
          Sets the new current state
 void setTransition(Enum<Dsmlv2StatesEnum> transition)
          Updates the transition from a state to another
 

Method Detail

getState

Enum<Dsmlv2StatesEnum> getState()
Gets the current grammar state

Returns:
Returns the current grammar state

setState

void setState(Enum<Dsmlv2StatesEnum> state)
Sets the new current state

Parameters:
state - The new state

getTransition

Enum<Dsmlv2StatesEnum> getTransition()
Gets the transition

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

setTransition

void setTransition(Enum<Dsmlv2StatesEnum> transition)
Updates the transition from a state to another

Parameters:
transition - The transition to set

getStates

Enum<Dsmlv2StatesEnum>[] getStates()
Returns:
Returns the states.


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