com.ibm.carma.ui.action.custom
Class CarmaCustomActionUtil
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
CarmaCustomActionUtil
public CarmaCustomActionUtil()
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 converttype - 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 converttype - The type of object
- Returns:
- A String that represents object.