Class com.ibm.ivj.util.base.ToolData
java.lang.Object
|
+----com.ibm.ivj.util.base.ToolData
- public class ToolData
- extends Object
- implements Serializable
This is a wrapper class for tool data. Tool data is
essentially a serialized Java object with an associated
string key (selected by the tool)
Constructor Index
- ToolData(String, Serializable)
- Create "keyed" tool data
Method Index
- getData()
- Returns tool data as a Java object
- getKey()
- Returns the tool data key
- setData(Serializable)
- Sets the tool data (as a serializable object)
- setKey(String)
- Sets the tool data key
Constructors
ToolData
public ToolData(String key,
Serializable data) throws IllegalArgumentException
- Create "keyed" tool data
- Parameters:
- key - java.lang.String
- data - java.io.Serializable
Methods
getData
public Serializable getData()
- Returns tool data as a Java object
- Returns:
- jaa.io.Serializable
getKey
public String getKey()
- Returns the tool data key
- Returns:
- java.lang.String
setData
public void setData(Serializable data) throws IllegalArgumentException
- Sets the tool data (as a serializable object)
- Parameters:
- data - java.io.Serializable
setKey
public void setKey(String key) throws IllegalArgumentException
- Sets the tool data key
- Parameters:
- key - java.lang.String
