Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.compile
Class IFSCompileSubstitutor

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.compile.QSYSCompileSubstitutor
      extended by com.ibm.etools.iseries.rse.ui.compile.IFSCompileSubstitutor

public class IFSCompileSubstitutor
extends QSYSCompileSubstitutor

This class is responsible for doing variable substitution for iSeries QSYS compile commands that act against IFS source files.


Field Summary
static String Copyright
           
protected  UniversalCompileSubstitutor univSubstitutor
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.compile.QSYSCompileSubstitutor
connection
 
Constructor Summary
IFSCompileSubstitutor(IHost connection)
          Constructor for ISeriesCompileSubstitutor.
 
Method Summary
protected  String getFileExtension(Object context)
          Return the substitute for the &FNE variable: Extension part of the name of the selected file
protected  String getFileName(Object context)
          Return the substitute for the &N variable:Name of selected file
protected  String getFileNameRoot(Object context)
          Return the substitute for the &FNR variable: Name of selected file without the extension.
protected  String getFolderPath(Object context)
          Return the substitute for the &FP variable: Fully qualified path of selected file, including name
protected  String getObjectLibraryName(Object context)
          Return the substitute for the &O variable: the object library into which to place the compiled output
protected  String getParentFolderName(Object context)
          Return the substitute for the &FCN variable: Name of parent folder containing selected file
protected  String getParentFolderPath(Object context)
          Return the substitute for the &FCP variable: Fully qualified path of parent folder, including name of selected file
 String getSubstitutionValue(String substitutionVariable, Object context)
          Return the substitution value for the IFS qsys command substitution variable
 String getSubstitutionValue(String substitutionVariable, Object context, boolean qsysCommand)
          Return the substitution value for the IFS qsys, or IFS qsys, command substitution variable
 void setConnection(IHost connection)
          Reset the connection so one instance can be re-used
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.compile.QSYSCompileSubstitutor
getDescription, getLibraryName, getMemberName, getReplaceValue
 
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

univSubstitutor

protected UniversalCompileSubstitutor univSubstitutor
Constructor Detail

IFSCompileSubstitutor

public IFSCompileSubstitutor(IHost connection)
Constructor for ISeriesCompileSubstitutor.

Method Detail

setConnection

public void setConnection(IHost connection)
Reset the connection so one instance can be re-used

Overrides:
setConnection in class QSYSCompileSubstitutor

getSubstitutionValue

public String getSubstitutionValue(String substitutionVariable,
                                   Object context)
Return the substitution value for the IFS qsys command substitution variable

Overrides:
getSubstitutionValue in class QSYSCompileSubstitutor
See Also:
com.ibm.etools.systems.core.ui.commands.ISystemSubstitutor#getSubstitutionValue(String, Object)

getSubstitutionValue

public String getSubstitutionValue(String substitutionVariable,
                                   Object context,
                                   boolean qsysCommand)
Return the substitution value for the IFS qsys, or IFS qsys, command substitution variable


getParentFolderName

protected String getParentFolderName(Object context)
Return the substitute for the &FCN variable: Name of parent folder containing selected file


getParentFolderPath

protected String getParentFolderPath(Object context)
Return the substitute for the &FCP variable: Fully qualified path of parent folder, including name of selected file


getFolderPath

protected String getFolderPath(Object context)
Return the substitute for the &FP variable: Fully qualified path of selected file, including name


getFileExtension

protected String getFileExtension(Object context)
Return the substitute for the &FNE variable: Extension part of the name of the selected file


getFileNameRoot

protected String getFileNameRoot(Object context)
Return the substitute for the &FNR variable: Name of selected file without the extension. It is uppercased.


getFileName

protected String getFileName(Object context)
Return the substitute for the &N variable:Name of selected file

Overrides:
getFileName in class QSYSCompileSubstitutor

getObjectLibraryName

protected String getObjectLibraryName(Object context)
Return the substitute for the &O variable: the object library into which to place the compiled output

Overrides:
getObjectLibraryName in class QSYSCompileSubstitutor

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.