iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.compile
Class ISeriesCompileUtilities

java.lang.Object
  extended bycom.ibm.etools.iseries.core.compile.ISeriesCompileUtilities
All Implemented Interfaces:
IISeriesCompileConstants

public class ISeriesCompileUtilities
extends Object
implements IISeriesCompileConstants

A singleton utility class that provides useful methods related to the entire compilation infrastructure.


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.core.compile.IISeriesCompileConstants
DBGVIEW_NONE, DBGVIEW_SRC, EVF, LST, NO_EVF, NO_LST, NO_SRC, OPTION, SRC
 
Method Summary
 String addEVFOption(String compileString)
          Given a command without the option to produce an events file, add it to ensure that an events file is produced.
 String fillWithRequiredIFSParams(String commandString)
          Fill a command string with required parameters and substitution variables, when the input is from the IFS
 String fillWithRequiredParams(String commandString)
          Fill a command string with required parameters and substitution variables
 String[] getAllCompileTypes()
          Get all compile types from all profiles for the iSeries Objects sub system factory.
 String[] getAllCompileTypesInOrder()
          Returns all compile types in the order in which compile commands would be executed.
 ISeriesIBMCompileCommands getAllIBMSuppliedCmds()
          Get all IBM supplied commands.
 String[] getAllIBMSuppliedCmdStrings()
          Get all IBM supplied command strings.
 String[] getAllIBMSuppliedCompileNames()
          Get all IBM supplied compile names.
 ISeriesIBMIFSCompileCommands getAllIBMSuppliedIFSCmds()
          Get all IBM supplied IFS commands.
 String[] getAllIBMSuppliedMbrTypes()
          Get all IBM supplied member types.
 String[] getCommandsToExecute(ISeriesConnection connection, String compileString, boolean replace)
          Get the commands to execute given the compile string.
 com.ibm.etools.systems.core.ui.compile.SystemCompileProfile getCompileProfile(com.ibm.etools.systems.model.SystemConnection connection)
          Return the compile profile object, given a connection
static ISeriesCompileUtilities getDefault()
          Get the singleton instance.
 String getIBMSuppliedCmdStringFromCompileName(String compileName)
          Get the IBM supplied command string associated with the compile name if it exists.
 ISeriesIBMCompileCommand getIBMSuppliedCommand(String commandName)
          If the command is an IBM supplied command, returns its ISeriesIBMCompileCommand object.
 String[] getIBMSuppliedCommandStringsFromType(String sourceType)
          Get the IBM supplied command strings that are associated with the given source type by default.
 com.ibm.etools.systems.core.ui.compile.SystemDefaultCompileCommand[] getIBMSuppliedCompileCommandsFromType(String sourceType)
          Get the IBM supplied compile commands that are associated with the given source type by default.
 String[] getIBMSuppliedCompileNamesFromType(String sourceType)
          Get the IBM supplied compile names that are associated with the given source type by default.
 String getIBMSuppliedIFSCmdStringFromCompileName(String compileName)
          Get the IBM supplied IFS command string associated with the compile name if it exists.
 ISeriesIBMIFSCompileCommand getIBMSuppliedIFSCommand(String commandName)
          If the command is an IBM supplied IFS command, returns its ISeriesIBMIFSCompileCommand object.
 com.ibm.etools.systems.core.ui.compile.SystemCompileCommand getLastUsedCompileCommand(String mbrType, com.ibm.etools.systems.model.SystemConnection connection)
          Return the last used compile command for the given source type
 boolean isIBMSuppliedCommand(String command)
          Is the command an IBM supplied command? These are all the compile commands.
 boolean isIBMSuppliedIFSCommand(String command)
          Is the command an IBM supplied IFS command? These are all the compile commands.
 void printAllIBMSuppliedCmds()
          Print all IBM supplied commands
 void printAllIBMSuppliedIFSCmds()
          Print all IBM supplied IFS commands
 String[] putCompileTypesInDefaultOrder(String[] types)
          Put compile types in default order.
 String[] putTypesInOrder(String[] types)
          Given an array of types, puts those types in order.
 void saveTypesInOrder(String[] types)
          Given a list of types, saves the types according to their order in the list.
 
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
Method Detail

getDefault

public static ISeriesCompileUtilities getDefault()
Get the singleton instance.


getAllIBMSuppliedMbrTypes

public String[] getAllIBMSuppliedMbrTypes()
Get all IBM supplied member types.


getAllIBMSuppliedCompileNames

public String[] getAllIBMSuppliedCompileNames()
Get all IBM supplied compile names.


getAllIBMSuppliedCmdStrings

public String[] getAllIBMSuppliedCmdStrings()
Get all IBM supplied command strings.


getAllIBMSuppliedCmds

public ISeriesIBMCompileCommands getAllIBMSuppliedCmds()
Get all IBM supplied commands.


getAllIBMSuppliedIFSCmds

public ISeriesIBMIFSCompileCommands getAllIBMSuppliedIFSCmds()
Get all IBM supplied IFS commands.


printAllIBMSuppliedCmds

public void printAllIBMSuppliedCmds()
Print all IBM supplied commands


printAllIBMSuppliedIFSCmds

public void printAllIBMSuppliedIFSCmds()
Print all IBM supplied IFS commands


getIBMSuppliedCmdStringFromCompileName

public String getIBMSuppliedCmdStringFromCompileName(String compileName)
Get the IBM supplied command string associated with the compile name if it exists. Otherwise, return null.


getIBMSuppliedIFSCmdStringFromCompileName

public String getIBMSuppliedIFSCmdStringFromCompileName(String compileName)
Get the IBM supplied IFS command string associated with the compile name if it exists. Otherwise, return null.


getIBMSuppliedCompileNamesFromType

public String[] getIBMSuppliedCompileNamesFromType(String sourceType)
Get the IBM supplied compile names that are associated with the given source type by default.


getIBMSuppliedCommandStringsFromType

public String[] getIBMSuppliedCommandStringsFromType(String sourceType)
Get the IBM supplied command strings that are associated with the given source type by default.


getIBMSuppliedCompileCommandsFromType

public com.ibm.etools.systems.core.ui.compile.SystemDefaultCompileCommand[] getIBMSuppliedCompileCommandsFromType(String sourceType)
Get the IBM supplied compile commands that are associated with the given source type by default.


isIBMSuppliedCommand

public boolean isIBMSuppliedCommand(String command)
Is the command an IBM supplied command? These are all the compile commands.


isIBMSuppliedIFSCommand

public boolean isIBMSuppliedIFSCommand(String command)
Is the command an IBM supplied IFS command? These are all the compile commands.


getIBMSuppliedCommand

public ISeriesIBMCompileCommand getIBMSuppliedCommand(String commandName)
If the command is an IBM supplied command, returns its ISeriesIBMCompileCommand object. Returns null if not an IBM command.


getIBMSuppliedIFSCommand

public ISeriesIBMIFSCompileCommand getIBMSuppliedIFSCommand(String commandName)
If the command is an IBM supplied IFS command, returns its ISeriesIBMIFSCompileCommand object. Returns null if not an IBM command.


addEVFOption

public String addEVFOption(String compileString)
Given a command without the option to produce an events file, add it to ensure that an events file is produced.


getCommandsToExecute

public String[] getCommandsToExecute(ISeriesConnection connection,
                                     String compileString,
                                     boolean replace)
                              throws Exception
Get the commands to execute given the compile string. Only required because

Throws:
Exception

fillWithRequiredParams

public String fillWithRequiredParams(String commandString)
Fill a command string with required parameters and substitution variables


fillWithRequiredIFSParams

public String fillWithRequiredIFSParams(String commandString)
Fill a command string with required parameters and substitution variables, when the input is from the IFS


getCompileProfile

public com.ibm.etools.systems.core.ui.compile.SystemCompileProfile getCompileProfile(com.ibm.etools.systems.model.SystemConnection connection)
Return the compile profile object, given a connection


getLastUsedCompileCommand

public com.ibm.etools.systems.core.ui.compile.SystemCompileCommand getLastUsedCompileCommand(String mbrType,
                                                                                             com.ibm.etools.systems.model.SystemConnection connection)
Return the last used compile command for the given source type


getAllCompileTypes

public String[] getAllCompileTypes()
Get all compile types from all profiles for the iSeries Objects sub system factory.


getAllCompileTypesInOrder

public String[] getAllCompileTypesInOrder()
Returns all compile types in the order in which compile commands would be executed. The first type in the array should be the first executed, etc.


putCompileTypesInDefaultOrder

public String[] putCompileTypesInDefaultOrder(String[] types)
Put compile types in default order.


saveTypesInOrder

public void saveTypesInOrder(String[] types)
Given a list of types, saves the types according to their order in the list.


putTypesInOrder

public String[] putTypesInOrder(String[] types)
Given an array of types, puts those types in order.


iSeries Remote Systems
v6.0.1

Copyright © 2005 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.