Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.remotebuild.util
Class CompileCommandUtil

java.lang.Object
  extended by com.ibm.etools.iseries.remotebuild.util.CompileCommandUtil

public class CompileCommandUtil
extends Object

Utility classes to manipulate compile commands, profiles, types, and managers.


Constructor Summary
CompileCommandUtil()
           
 
Method Summary
static List getCompileTypes(String sourceType)
          Returns the compile types associated with this connection and source type.
static SystemCompileCommand getLastUsedCompileCommand(String sourceType)
          Returns the one and only default compile command for a given source type.
static String getLastUsedProfileName()
          Returns the last used compile profile name.
static ISystemCompileCommandSubstitutor getSubstitutor(IHost connection)
          Gets the standard substitutor for this connection.
static void setLastUsedProfileName(String name)
          Sets the last used compile profile name.
static List sortMembers(List members)
          Sort the list of members in the correct order for compiling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileCommandUtil

public CompileCommandUtil()
Method Detail

getCompileTypes

public static List getCompileTypes(String sourceType)
Returns the compile types associated with this connection and source type. There is one compile type per active profile.


getLastUsedProfileName

public static String getLastUsedProfileName()
Returns the last used compile profile name. Returns null if there is none.


setLastUsedProfileName

public static void setLastUsedProfileName(String name)
Sets the last used compile profile name.


getLastUsedCompileCommand

public static SystemCompileCommand getLastUsedCompileCommand(String sourceType)
Returns the one and only default compile command for a given source type. Returns null if there is no default command for this source type.


getSubstitutor

public static ISystemCompileCommandSubstitutor getSubstitutor(IHost connection)
Gets the standard substitutor for this connection. The subsitutor will take an RBMember and perform the appropriate variable substitutions when invoked on a particular command.

Parameters:
connection - the SystemConnection whose command subsystem is to be examined
Returns:
the ISystemCompileCommandSubstitutor that can be used to perform command substitutions for this connection.

sortMembers

public static List sortMembers(List members)
Sort the list of members in the correct order for compiling.

Parameters:
members - a List of RBMembers to sort
Returns:
a List consisting of the RBMembers in the orginal list but in order by their source type dependencies.

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.