com.ibm.rational.test.lt.recorder.core.property
Class AbstractTypedConfiguration
java.lang.Object
com.ibm.rational.test.lt.recorder.core.property.AbstractConfiguration
com.ibm.rational.test.lt.recorder.core.property.AbstractTypedConfiguration
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- ClientConfiguration, PacketConverterConfiguration, RecorderAnnotation, RecorderConfiguration, TestGeneratorConfiguration
public abstract class AbstractTypedConfiguration
- extends AbstractConfiguration
A typed generic configuration object, used for holding properties related to a typed
component.
This class adds the notion of type and id to its superclass.
- See Also:
- Serialized Form
Field Summary |
static String |
NAME
Property that defines a user-friendly name for the component that will be instantiated
from this configuration. |
protected String |
type
|
Methods inherited from class com.ibm.rational.test.lt.recorder.core.property.AbstractConfiguration |
addChildConfiguration, afterXmlDeserialization, assignUniqueIds, beforeXmlSerialization, cloneProperties, get, getBoolean, getData, getEnum, getInteger, getList, getMap, getObfuscatedList, getObfuscatedString, getPreferedIdPrefixForChild, getPreferedPrefix, getProtocol, getString, getString, isOperand, loadAttributes, remove, saveDataToAttachment, serialize, setBoolean, setData, setData, setEnum, setInteger, setList, setMap, setObfuscatedList, setObfuscatedString, setString, toString, write, write, write, writeAttributes, writeChildConfiguration, writeChildConfigurations, writeChildConfigurations |
NAME
public static final String NAME
- Property that defines a user-friendly name for the component that will be instantiated
from this configuration. This property is a string and is optional. If not provided,
the component will be assigned a generated name.
- See Also:
- Constant Field Values
type
protected String type
AbstractTypedConfiguration
protected AbstractTypedConfiguration(String type)
getType
public String getType()
setType
public void setType(String type)
getElementName
protected String getElementName()
- Specified by:
getElementName
in class AbstractConfiguration
getNamespace
protected String getNamespace()
- Specified by:
getNamespace
in class AbstractConfiguration
clone
public abstract AbstractTypedConfiguration clone()
- Specified by:
clone
in class AbstractConfiguration
setId
public void setId(String id)
- Sets the id of the component. A component id must be unique within a recording session
configuration.
- Parameters:
id
- An id. Can be null
to unassign the component id. However an id
will automatically assigned to the component if it is persisted.
getId
public String getId()
- Returns the id of the component. An id is optional in general, but is automatically assigned
to the component if it does not have one when the configuration is persisted.
- Returns:
- The component id.
© Copyright IBM Corp. 2012. All rights reserved.