|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.files.compile.UniversalCompileSubstitutor
This class is responsible for doing variable substitution for iSeries compile commands
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandSubstitutor |
---|
copyright |
Constructor Summary | |
---|---|
UniversalCompileSubstitutor(SystemConnection connection)
Constructor for UniversalCompileSubstitutor. |
Method Summary | |
---|---|
protected RemoteCmdSubSystem |
getCmdsSubSystem()
Get the command subsystem |
protected String |
getContainerName(Object context)
Return the name of the parent folder, for the ${container_name} variable |
protected String |
getContainerPath(Object context)
Return the path of the parent folder, for the ${container_path} variable |
protected String |
getFileSeparator()
Return the file separator for the ${system_filesep} variable |
protected RemoteFileSubSystem |
getFilesSubSystem()
Get the files subsystem |
protected RemoteFileSubSystemFactory |
getFilesSubSystemFactory()
Get the files subsystem factory |
protected String |
getHomeDirectory()
Return the user's home directory on the remote system, for the ${system_homedir} variable |
protected String |
getPathDrive(Object context)
Return the drive part of the path, for the ${resource_path_drive} variable |
protected String |
getPathRoot(Object context)
Return the root part of the path, for the ${resource_path_root} variable |
protected String |
getPathSeparator()
Return the path separator for the ${system_pathsep} variable |
protected String |
getResourceName(Object context)
Return the name of the currently selected resource, for the ${resource_name} variable |
protected String |
getResourceNameRoot(Object context)
Return the root part of the name of the currently selected resource, for the ${resource_name_root} variable |
protected String |
getResourcePath(Object context)
Return the path of the currently selected resource, for the ${resource_path} variable |
String |
getSubstitutionValue(String substitutionVariable,
Object context)
Return the string to substitute for the given substitution variable, given the current context object. |
protected String |
getTempDirectory()
Return the temporary directory on the remote system, for the ${system_tempdir} variable |
protected String |
getUserId()
Return the user ID used to connect with the remote system, for the ${user_id} variable |
void |
setConnection(SystemConnection 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 |
public static final String Copyright
Constructor Detail |
public UniversalCompileSubstitutor(SystemConnection connection)
Method Detail |
public void setConnection(SystemConnection connection)
setConnection
in interface ISystemCompileCommandSubstitutor
public String getSubstitutionValue(String substitutionVariable, Object context)
ISystemSubstitutor
It is VERY IMPORTANT to return null if you can't do the substitution for some reason! This is a clue to the algorithm that no change was made and increases performance.
getSubstitutionValue
in interface ISystemSubstitutor
ISystemSubstitutor.getSubstitutionValue(String, Object)
protected RemoteCmdSubSystem getCmdsSubSystem()
protected RemoteFileSubSystem getFilesSubSystem()
protected RemoteFileSubSystemFactory getFilesSubSystemFactory()
protected String getFileSeparator()
protected String getPathSeparator()
protected String getHomeDirectory()
protected String getTempDirectory()
protected String getUserId()
protected String getResourceName(Object context)
protected String getResourceNameRoot(Object context)
protected String getResourcePath(Object context)
protected String getPathRoot(Object context)
protected String getPathDrive(Object context)
protected String getContainerName(Object context)
protected String getContainerPath(Object context)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |