com.ibm.carma.ui.action.custom
Class CarmaCustomActionUtil

java.lang.Object
  extended by com.ibm.carma.ui.action.custom.CarmaCustomActionUtil

public class CarmaCustomActionUtil
extends java.lang.Object

This Utility class is used to do the type conversion and casting necessary for handling custom action parameters.


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
CarmaCustomActionUtil()
           
 
Method Summary
static java.lang.String convertObjectToString(java.lang.Object object, VariableType type)
          Converts the given object to a String.
static java.lang.Object convertStringToObject(java.lang.String string, VariableType type)
          Converts a String to an Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

CarmaCustomActionUtil

public CarmaCustomActionUtil()
Method Detail

convertStringToObject

public static java.lang.Object convertStringToObject(java.lang.String string,
                                                     VariableType type)
Converts a String to an Object. Runtime Exceptions are thrown if string is not of the correct VariableType.

Parameters:
string - The String to convert
type - The type of the resulting Object.
Returns:
The Object represented by string.

convertObjectToString

public static java.lang.String convertObjectToString(java.lang.Object object,
                                                     VariableType type)
Converts the given object to a String.

Parameters:
object - The Object to convert
type - The type of object
Returns:
A String that represents object.