public abstract class AbstractCommand extends AbstractTestRecord
_parameters, BLOCKID_RECORD_TYPE, BREAKPOINT_RECORD_TYPE, COMPONENT_FUNCTION_FAILOK_RECORD_TYPE, COMPONENT_FUNCTION_RECORD_TYPE, COMPONENT_FUNCTION_WARNOK_RECORD_TYPE, DRIVER_COMMAND_FAILOK_RECORD_TYPE, DRIVER_COMMAND_RECORD_TYPE, DRIVER_COMMAND_WARNOK_RECORD_TYPE, EMPTY_PARAMETER, ENGINE_COMMAND_FAILOK_RECORD_TYPE, ENGINE_COMMAND_RECORD_TYPE, ENGINE_COMMAND_WARNOK_RECORD_TYPE, PROJECT_COMMAND_RECORD_TYPE, SKIPPED_RECORD_TYPE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCommand(java.lang.String commandName,
java.lang.String testRecordID)
Invoked from subclasses when instancing new commands.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.StringBuffer |
appendCommandToTestRecord(java.lang.StringBuffer sb,
java.lang.String fieldSeparator)
Called by exportTestRecord() after the testRecordID() and a field
separator have been appended to the StringBuffer.
|
java.lang.String |
exportTestRecord(java.lang.String fieldSeparator)
TestRecordExporter interface implementation.
|
java.lang.String |
getCommandName()
Returns the string name of the command.
|
java.lang.String |
getTestRecordID()
Returns the string record type for this command.
|
addParameter, addParameters, appendParametersToTestRecord, getParametersprotected AbstractCommand(java.lang.String commandName,
java.lang.String testRecordID)
commandName - -- the name of the command ("SetApplicationMap", etc.)testRecordID - -- the record type of the command ("T", "C", etc.)java.lang.IllegalArgumentException - if specified parameters are null or zero-lengthpublic java.lang.String getCommandName()
public java.lang.String getTestRecordID()
public java.lang.String exportTestRecord(java.lang.String fieldSeparator)
fieldSeparator - used to delimit fields in test recordprotected java.lang.StringBuffer appendCommandToTestRecord(java.lang.StringBuffer sb,
java.lang.String fieldSeparator)
sb - StringBuffer to append fields tofieldSeparator - character to append in between fieldsCopyright © SAS Institute. All Rights Reserved.