|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.subsystems.qsys.prompter.ClUtilities
public class ClUtilities
Common CL Utilities that can be used by anyone
Field Summary | |
---|---|
static String |
Copyright
|
static int |
ISERIES_CL
|
static int |
ISERIES_CLLE
|
static int |
ISERIES_CLP
|
static int |
ISERIES_CMD
|
static int |
ISERIES_UNKNOWN_FILE
|
static String |
PROCESSING_INDICATOR
|
Constructor Summary | |
---|---|
ClUtilities()
|
Method Summary | |
---|---|
static void |
addHiddenParameter(String command,
String parameter,
int positional)
Add the property for a hidden parameter for a command. |
static String |
getCommandStringWithoutHiddenParameters(String commandString)
Retrieves the command string without hidden parameters (for use with commands list CRTUSRPRF that have parameters like PASSWORD) |
static String |
getCommandWithoutBatchProcessingCharacters(String command)
retrieves the command without the batch processing characters |
static String |
getCommandWithoutComments(String command,
StringBuffer strbComment,
boolean ignoreErrors)
Retrieves a command string without comments |
static String |
getCommandWithoutLabel(String command,
StringBuffer strbLabel)
retrieves the command string without the label. |
static String |
getCommandWithoutLabel(String command,
StringBuffer strbLabel,
boolean withColon,
boolean ignoreErrors)
retrieves the command without the label |
static SystemMessage |
getMessage(String messageText,
String messageDetails,
String messageId)
|
static boolean |
hasBatchProcessingIndicator(String command)
returns whether or not a command string has batch processing characters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final int ISERIES_UNKNOWN_FILE
public static final int ISERIES_CL
public static final int ISERIES_CLLE
public static final int ISERIES_CLP
public static final int ISERIES_CMD
public static final String PROCESSING_INDICATOR
Constructor Detail |
---|
public ClUtilities()
Method Detail |
---|
public static String getCommandWithoutLabel(String command, StringBuffer strbLabel) throws ClParseException
command
- the command to parsestrbLabel
- the returned label string buffer without the colon
ClParseException
- If there is an error parsing the label for the command, this exception is thrown.public static String getCommandWithoutLabel(String command, StringBuffer strbLabel, boolean withColon, boolean ignoreErrors) throws ClParseException
command
- the command to parsestrbLabel
- the string buffer to return the label stringwithColon
- true if you want the colon returned as part of the label string, false otherwiseignoreErrors
- true if you don't want exceptions thrown, false if you want to ignore errors and continue with processing
ClParseException
- If there is an error parsing the label for the command, this exception is thrown.public static boolean hasBatchProcessingIndicator(String command)
command
- the command to parse
public static String getCommandWithoutBatchProcessingCharacters(String command)
command
- the command string to parse
public static String getCommandWithoutComments(String command, StringBuffer strbComment, boolean ignoreErrors) throws ClParseException
command
- the command string to parsestrbComment
- the string buffer to return the comment stringignoreErrors
- truw if you want to ignore errors and do not want exceptions thrown
ClParseException
- If there is an error encountered when parsing the command string, this exception will
be thrown.public static String getCommandStringWithoutHiddenParameters(String commandString)
commandString
- The string with the hidden parameters
public static void addHiddenParameter(String command, String parameter, int positional)
command
- the command to add a hidden parameter forparameter
- the parameter which should be hiddenpositional
- the positional value of the parameter, 0 if the paramter is not eligeabl as a positional parameterpublic static SystemMessage getMessage(String messageText, String messageDetails, String messageId)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |