Rational Developer for Power Systems Software
V7.6

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

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

public class QSYSCommandsUtil
extends Object

Utility class that can be used to get the correct command for the passed Object Supported Commands: Change Change Text Change Type Copy Delete Merge Rename Restore Save


Field Summary
static String copyright
           
 
Constructor Summary
QSYSCommandsUtil()
           
 
Method Summary
static String getChangeCommand(Object element)
          Return the iSeries command string needed to change this object.
static String getChangeTextCommand(Object element, String newText)
          Return the iSeries command string needed to change the text of this object on the iSeries.
static String getChangeTypeCommand(Object element, String newType)
          Return the iSeries command string needed to change the type of this object on the iSeries.
static String getCopyCommand(Object element)
          Return the iSeries command string needed to copy this object.
static String getDeleteCommand(Object element)
          Return the iSeries command string needed to delete this object.
static String getMergeCommand(IQSYSSourceMember member)
          Return the iSeries command string needed to merge this object.
static String getRenameCommand(Object element, String newName)
          Return the iSeries command string needed to rename this object.
static String getRestoreCommand(Object element)
          Return the iSeries command string needed to restore this object.
static String getRestoreLibCommand(IQSYSSaveFile savf)
          Return the RSTLIB command
static String getRestoreObjCommand(IQSYSSaveFile savf)
          Return the RSTOBJ command
static String getSaveCommand(Object element)
          Return the iSeries command string needed to save this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

QSYSCommandsUtil

public QSYSCommandsUtil()
Method Detail

getRenameCommand

public static String getRenameCommand(Object element,
                                      String newName)
Return the iSeries command string needed to rename this object. Will be a RNMxxxYYY command. Add a question mark in front to prompt it. Returns null if no command is applicable.


getDeleteCommand

public static String getDeleteCommand(Object element)
Return the iSeries command string needed to delete this object. Will be a DLTxxxYYY command. Add a question mark in front to prompt it. Returns null if no command is applicable.


getChangeCommand

public static String getChangeCommand(Object element)
Return the iSeries command string needed to change this object. Will be a CHGxxxYYY command. Add a question mark in front to prompt it. Returns null if no command is applicable.


getCopyCommand

public static String getCopyCommand(Object element)
Return the iSeries command string needed to copy this object. Will be a CPYxxxYYY command, with a question mark in front to prompt it. Returns null if no command is applicable.


getChangeTextCommand

public static String getChangeTextCommand(Object element,
                                          String newText)
Return the iSeries command string needed to change the text of this object on the iSeries. Returns null if no command is applicable.


getChangeTypeCommand

public static String getChangeTypeCommand(Object element,
                                          String newType)
Return the iSeries command string needed to change the type of this object on the iSeries. Only applicable for libraries and members. Always returns the command with a question mark in front, for prompting. Returns null if no command is applicable.


getRestoreCommand

public static String getRestoreCommand(Object element)
Return the iSeries command string needed to restore this object. Will be a RSTxxxYYY command, with a question mark in front to prompt it. Returns null if no command is applicable. Only applies to libraries and objects.


getSaveCommand

public static String getSaveCommand(Object element)
Return the iSeries command string needed to save this object. Will be a SAVxxxYYY command, with a question mark in front to prompt it. Returns null if no command is applicable. Only applies to libs, objs and members.


getMergeCommand

public static String getMergeCommand(IQSYSSourceMember member)
Return the iSeries command string needed to merge this object. At this point, only applicable for members, and returns MRGSRC, or null for non-members. At this point, only applicable for src members, and returns MRGSRC, or null for non-src-members.


getRestoreLibCommand

public static String getRestoreLibCommand(IQSYSSaveFile savf)
Return the RSTLIB command

Parameters:
savf -
Returns:
RSTLIB command string

getRestoreObjCommand

public static String getRestoreObjCommand(IQSYSSaveFile savf)
Return the RSTOBJ command

Parameters:
savf -
Returns:
RSTOBJ command string

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.