iSeries Remote Systems
v6.0.1

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

java.lang.Object
  extended bycom.ibm.etools.iseries.core.compile.ISeriesCompileSubstitutor
      extended bycom.ibm.etools.iseries.core.compile.ISeriesCompileSubstitutorIFS
All Implemented Interfaces:
com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor, com.ibm.etools.systems.core.ui.commands.ISystemSubstitutor

public class ISeriesCompileSubstitutorIFS
extends ISeriesCompileSubstitutor
implements com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor

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  com.ibm.etools.systems.files.compile.UniversalCompileSubstitutor univSubstitutor
           
 
Fields inherited from class com.ibm.etools.iseries.core.compile.ISeriesCompileSubstitutor
connection
 
Fields inherited from interface com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor
copyright
 
Constructor Summary
ISeriesCompileSubstitutorIFS(com.ibm.etools.systems.model.SystemConnection 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(com.ibm.etools.systems.model.SystemConnection connection)
          Reset the connection so one instance can be re-used
 
Methods inherited from class com.ibm.etools.iseries.core.compile.ISeriesCompileSubstitutor
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 com.ibm.etools.systems.files.compile.UniversalCompileSubstitutor univSubstitutor
Constructor Detail

ISeriesCompileSubstitutorIFS

public ISeriesCompileSubstitutorIFS(com.ibm.etools.systems.model.SystemConnection connection)
Constructor for ISeriesCompileSubstitutor.

Method Detail

setConnection

public void setConnection(com.ibm.etools.systems.model.SystemConnection connection)
Reset the connection so one instance can be re-used

Specified by:
setConnection in interface com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor
Overrides:
setConnection in class ISeriesCompileSubstitutor

getSubstitutionValue

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

Specified by:
getSubstitutionValue in interface com.ibm.etools.systems.core.ui.commands.ISystemSubstitutor
Overrides:
getSubstitutionValue in class ISeriesCompileSubstitutor
See Also:
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 ISeriesCompileSubstitutor

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 ISeriesCompileSubstitutor

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.