|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.statemachine.context.AbstractStateContext
public abstract class AbstractStateContext
Abstract StateContext
which uses a Map
to store the
attributes.
Constructor Summary | |
---|---|
AbstractStateContext()
|
Method Summary | |
---|---|
Object |
getAttribute(Object key)
Returns the value of the attribute with the specified key or null if not found. |
protected Map<Object,Object> |
getAttributes()
|
State |
getCurrentState()
Returns the current State . |
void |
setAttribute(Object key,
Object value)
Sets the value of the attribute with the specified key. |
void |
setCurrentState(State state)
Sets the current State . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractStateContext()
Method Detail |
---|
public Object getAttribute(Object key)
StateContext
null
if not found.
getAttribute
in interface StateContext
key
- the key.
null
.public State getCurrentState()
StateContext
State
. This is only meant for internal use.
getCurrentState
in interface StateContext
State
.public void setAttribute(Object key, Object value)
StateContext
setAttribute
in interface StateContext
key
- the key.value
- the value.public void setCurrentState(State state)
StateContext
State
. This is only meant for internal use.
Don't call it directly!
setCurrentState
in interface StateContext
state
- the new current State
.protected Map<Object,Object> getAttributes()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |