Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.compile.QSYSCompileSubstitutor
Direct Known Subclasses:
IFSCompileSubstitutor

public class QSYSCompileSubstitutor
extends Object

This class is responsible for doing variable substitution for iSeries compile commands


Field Summary
protected  IHost connection
           
static String Copyright
           
 
Constructor Summary
QSYSCompileSubstitutor(IHost connection)
          Constructor for ISeriesCompileSubstitutor.
 
Method Summary
protected  String getDescription(Object context)
          Return the substitute for the &X variable: the description of the selected member
protected  String getFileName(Object context)
          Return the substitute for the &F variable: the file of the selected member
protected  String getLibraryName(Object context)
          Return the substitute for the &L variable: the library of the selected library
protected  String getMemberName(Object context)
          Return the substitute for the &N variable: the name of the selected member
protected  String getObjectLibraryName(Object context)
          Return the substitute for the &O variable: the object library into which to place the compiled output
protected  String getReplaceValue(Object context)
          Return the substitute for the &R variable: the replace value, either *YES or *NO
 String getSubstitutionValue(String substitutionVariable, Object context)
           
 void setConnection(IHost connection)
          Reset the connection so one instance can be re-used
 
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

connection

protected IHost connection
Constructor Detail

QSYSCompileSubstitutor

public QSYSCompileSubstitutor(IHost connection)
Constructor for ISeriesCompileSubstitutor.

Method Detail

setConnection

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


getSubstitutionValue

public String getSubstitutionValue(String substitutionVariable,
                                   Object context)
See Also:
com.ibm.etools.systems.core.ui.commands.ISystemSubstitutor#getSubstitutionValue(String, Object)

getLibraryName

protected String getLibraryName(Object context)
Return the substitute for the &L variable: the library of the selected library


getDescription

protected String getDescription(Object context)
Return the substitute for the &X variable: the description of the selected member


getFileName

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


getMemberName

protected String getMemberName(Object context)
Return the substitute for the &N variable: the name of the selected member


getObjectLibraryName

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


getReplaceValue

protected String getReplaceValue(Object context)
Return the substitute for the &R variable: the replace value, either *YES or *NO


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.