|
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.RemotePath
Class representing a remote path.
Field Summary | |
---|---|
protected String |
absolutePath
|
protected String |
connectionName
|
protected String |
profileName
|
Constructor Summary | |
---|---|
RemotePath(String fullyQualifiedPath)
Sets the profile name, connection name and absolute path on the remote machine from the fully qualified path. |
|
RemotePath(String profileName,
String connectionName,
String absolutePath)
Constructor. |
Method Summary | |
---|---|
IRemotePath |
addFileExtension(String extension)
Returns a new path with the file extension added to this path. |
String |
getAbsolutePath()
Returns the absolute path. |
String |
getConnectionName()
Returns the connection name. |
String |
getFileExtension()
Returns the file extension for the path. |
String |
getFullyQualifiedPath()
Returns the fully qualified path. |
String |
getProfileName()
Returns the profile name. |
boolean |
isVirtual()
Returns whether this path represents a virtual file. |
IRemotePath |
removeFileExtension()
Returns a new path with the file extension removed from this path. |
protected void |
setAbsolutePath(String absolutePath)
|
protected void |
setConnectionName(String connectionName)
|
protected void |
setProfileName(String profileName)
|
IRemoteFile |
toRemoteFile()
Returns the remote file represented by the remote path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String profileName
protected String connectionName
protected String absolutePath
Constructor Detail |
public RemotePath(String profileName, String connectionName, String absolutePath)
profileName
- the profile name.connectionName
- the connection name.absolutePath
- the absolute path.public RemotePath(String fullyQualifiedPath)
"profileName.connectionName:absolutePath"
.
Method Detail |
protected void setProfileName(String profileName)
com.ibm.etools.systems.files.IRemotePath#setProfileName(java.lang.String)
protected void setConnectionName(String connectionName)
com.ibm.etools.systems.files.IRemotePath#setConnectionName(java.lang.String)
protected void setAbsolutePath(String absolutePath)
com.ibm.etools.systems.files.IRemotePath#setAbsolutePath(java.lang.String)
public String getProfileName()
IRemotePath
getProfileName
in interface IRemotePath
IRemotePath.getProfileName()
public String getConnectionName()
IRemotePath
getConnectionName
in interface IRemotePath
IRemotePath.getConnectionName()
public String getAbsolutePath()
IRemotePath
getAbsolutePath
in interface IRemotePath
IRemotePath.getAbsolutePath()
public String getFullyQualifiedPath()
IRemotePath
null
, then the fully qualified path
will also be null
.
getFullyQualifiedPath
in interface IRemotePath
IRemotePath.getFullyQualifiedPath()
public String getFileExtension()
IRemotePath
getFileExtension
in interface IRemotePath
null
if none.IRemotePath.getFileExtension()
public IRemotePath addFileExtension(String extension)
IRemotePath
addFileExtension
in interface IRemotePath
extension
- the file extension to append to the path.
IRemotePath.addFileExtension(java.lang.String)
public IRemotePath removeFileExtension()
IRemotePath
removeFileExtension
in interface IRemotePath
com.ibm.etools.systems.files.IRemotePath#removeFileExtension(java.lang.String)
public boolean isVirtual()
IRemotePath
isVirtual
in interface IRemotePath
true
if the path represents a virtual file, false
otherwise.IRemotePath.isVirtual()
public IRemoteFile toRemoteFile()
IRemotePath
toRemoteFile
in interface IRemotePath
IRemotePath.toRemoteFile()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |