Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.subsystems.qsys.commands
Class QSYSCommandLineParameterHandler

java.lang.Object
  extended by com.ibm.etools.iseries.subsystems.qsys.commands.QSYSCommandLineParameterHandler

public class QSYSCommandLineParameterHandler
extends Object

This class handles the merging of the command string to be executed and the parameter string that is specified on the table view command line


Field Summary
static String copyright
           
 
Constructor Summary
QSYSCommandLineParameterHandler()
           
 
Method Summary
static void clearParameterUsed()
          Clear the command combo This is done when the command using the additional parameter succeeded
static boolean isRequiredToProcessParameters()
          Return whether the command string should be processed with additional parameter
static void main(String[] args)
           
static String processParameters(String cmdString)
          Process the command string with the parameter string specofied on the command line
static String processParameters(String cmdString, String additionalParam)
          Handle the work when parameters are specified in the command and need to be merged with the command itself.
static void restoreParameterUsed()
          Restore the parameter back to the command This is done when the command using the additional parameter failed
static void setCommandLineCombo(Combo cbCmdLineInput)
          Set the command line combo
static void setParameterHandlerConfig(IQSYSCommandLineParameterHandlerConfig parameterHandlerConfig)
           
static void setProcessingMultiSelection(boolean processingMultiSelectionInput)
          Set if processing multiple selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

QSYSCommandLineParameterHandler

public QSYSCommandLineParameterHandler()
Method Detail

setParameterHandlerConfig

public static void setParameterHandlerConfig(IQSYSCommandLineParameterHandlerConfig parameterHandlerConfig)
Parameters:
parameterHandlerConfig - the parameterHandlerConfig to set

setCommandLineCombo

public static void setCommandLineCombo(Combo cbCmdLineInput)
Set the command line combo


isRequiredToProcessParameters

public static boolean isRequiredToProcessParameters()
Return whether the command string should be processed with additional parameter


restoreParameterUsed

public static void restoreParameterUsed()
Restore the parameter back to the command This is done when the command using the additional parameter failed


clearParameterUsed

public static void clearParameterUsed()
Clear the command combo This is done when the command using the additional parameter succeeded


processParameters

public static String processParameters(String cmdString)
Process the command string with the parameter string specofied on the command line


processParameters

public static String processParameters(String cmdString,
                                       String additionalParam)
Handle the work when parameters are specified in the command and need to be merged with the command itself. It should behave the same way as PDM. Parameter values that are found in the command string will be used instead. Keyword parameters will be appended to the end Positional parameters are not supported and also appended to the end.

Parameters:
cmdString - - The original command string
additionalParam - - Additional parameters from the command
Returns:
newString - New string after merging two strings

setProcessingMultiSelection

public static void setProcessingMultiSelection(boolean processingMultiSelectionInput)
Set if processing multiple selection


main

public static void main(String[] args)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.