jpl.mipl.mdms.FileService.komodo.client
Class ActionTable
java.lang.Object
jpl.mipl.mdms.FileService.komodo.client.ActionTable
public class ActionTable
- extends Object
Purpose: Static lookup table to map between action ids and names.
int addId = Constants.ADDFILE;
String notifyName = "komodo.util.notify";
String addName = ActionTable.toName(addId);
int notifyId = ActionTable.toId(notifyName);
Copyright 2005, California Institute of Technology. ALL RIGHTS RESERVED. U.S.
Government Sponsorship acknowledge. 2005.
============================================================================
Modification History : ----------------------
Date Who What
----------------------------------------------------------------------------
01/07/2005 Nick Initial Release
============================================================================
- Version:
- $Id: ActionTable.java,v 1.7 2009/08/07 01:00:47 ntt Exp $
- Author:
- Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)
|
Method Summary |
protected static void |
initTables()
|
static String |
toId(String name)
Returns action id associated with the action name parameter. |
static String |
toName(String actionId)
Returns action name associated with the action id parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_idToNameTable
protected static final Map _idToNameTable
_nameToIdTable
protected static final Map _nameToIdTable
ActionTable
public ActionTable()
initTables
protected static void initTables()
toName
public static String toName(String actionId)
- Returns action name associated with the action id parameter.
- Parameters:
actionId - Action id
- Returns:
- Associated name of action, or null if not found.
toId
public static String toId(String name)
- Returns action id associated with the action name parameter.
- Parameters:
name - Action name
- Returns:
- Associated id of action, or Constants.NOOPERATION if not
found.