org.yasl.arch.impl.action
Class YASLActionHandlerImpl

java.lang.Object
  extended byorg.yasl.arch.impl.action.YASLActionHandlerImpl
All Implemented Interfaces:
YASLActionHandler

public class YASLActionHandlerImpl
extends Object
implements YASLActionHandler

Implements the YASLActionHandler interface.


Constructor Summary
YASLActionHandlerImpl()
           
 
Method Summary
 void addActionByKey(String actionKey, Action action)
          Add a key-actiom mapping.
 Action getActionByKey(String actionKey)
          Returns the action object associated with the key.
 Set getActionKeys()
          Returns a non-modifiable set of keys to actions.
 boolean isKeyInUse(String actionKey)
          Checks if an action is mapped to the passed key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YASLActionHandlerImpl

public YASLActionHandlerImpl()
Method Detail

addActionByKey

public void addActionByKey(String actionKey,
                           Action action)
Add a key-actiom mapping. The action object cannot be null. If the actionKey is already in use, the mapping will be overwritten with the new mapping.

Specified by:
addActionByKey in interface YASLActionHandler
Parameters:
actionKey - String
action - Action

getActionByKey

public Action getActionByKey(String actionKey)
Returns the action object associated with the key. This method may return null if the key is not mapped.

Specified by:
getActionByKey in interface YASLActionHandler
Parameters:
actionKey - String
Returns:
Action

isKeyInUse

public boolean isKeyInUse(String actionKey)
Checks if an action is mapped to the passed key.

Specified by:
isKeyInUse in interface YASLActionHandler
Parameters:
actionKey - String
Returns:
boolean

getActionKeys

public Set getActionKeys()
Returns a non-modifiable set of keys to actions.

Specified by:
getActionKeys in interface YASLActionHandler
Returns:
Set