RSE
Release 1.0

org.eclipse.rse.services.local.files
Class LocalVirtualHostFile

java.lang.Object
  extended byorg.eclipse.rse.services.local.files.LocalHostFile
      extended byorg.eclipse.rse.services.local.files.LocalVirtualHostFile
All Implemented Interfaces:
IHostFile

public class LocalVirtualHostFile
extends LocalHostFile


Field Summary
protected  VirtualChild _child
           
protected  File _parentArchive
           
 
Constructor Summary
LocalVirtualHostFile(VirtualChild child)
           
 
Method Summary
 boolean exists()
          Determines if the file system object exists on the remote file system.
 String getAbsolutePath()
          Gets the fully qualified path to this object in the remote file system.
 VirtualChild getChild()
           
 File getFile()
           
 String getName()
          Gets the simple name of the file object on the remote system.
 String getParentPath()
          Gets the absolute path name of the parent object of this object on the remote file system.
 boolean isArchive()
          Determines if the file system object represents an archive on the remote file system.
 boolean isDirectory()
          Determines if the file system object is a directory on the remote file system.
 boolean isFile()
          Determines if the file system object is a file on the remote file system.
 boolean isHidden()
          Determines if the file system object is hidden on the remote file system.
 boolean isRoot()
          Determines if the file system object is a "root" directory on the remote file system.
 void renameTo(String newAbsolutePath)
          Renames this abstract file handle.
 
Methods inherited from class org.eclipse.rse.services.local.files.LocalHostFile
canRead, canWrite, getModifiedDate, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parentArchive

protected File _parentArchive

_child

protected VirtualChild _child
Constructor Detail

LocalVirtualHostFile

public LocalVirtualHostFile(VirtualChild child)
Method Detail

getName

public String getName()
Description copied from interface: IHostFile
Gets the simple name of the file object on the remote system.

Specified by:
getName in interface IHostFile
Overrides:
getName in class LocalHostFile

getParentPath

public String getParentPath()
Description copied from interface: IHostFile
Gets the absolute path name of the parent object of this object on the remote file system.

Specified by:
getParentPath in interface IHostFile
Overrides:
getParentPath in class LocalHostFile

isDirectory

public boolean isDirectory()
Description copied from interface: IHostFile
Determines if the file system object is a directory on the remote file system.

Specified by:
isDirectory in interface IHostFile
Overrides:
isDirectory in class LocalHostFile

isRoot

public boolean isRoot()
Description copied from interface: IHostFile
Determines if the file system object is a "root" directory on the remote file system.

Specified by:
isRoot in interface IHostFile
Overrides:
isRoot in class LocalHostFile

isFile

public boolean isFile()
Description copied from interface: IHostFile
Determines if the file system object is a file on the remote file system.

Specified by:
isFile in interface IHostFile
Overrides:
isFile in class LocalHostFile

getFile

public File getFile()
Overrides:
getFile in class LocalHostFile

exists

public boolean exists()
Description copied from interface: IHostFile
Determines if the file system object exists on the remote file system.

Specified by:
exists in interface IHostFile
Overrides:
exists in class LocalHostFile

getAbsolutePath

public String getAbsolutePath()
Description copied from interface: IHostFile
Gets the fully qualified path to this object in the remote file system. The name is constructed as it would be used on the remote file system.

Specified by:
getAbsolutePath in interface IHostFile
Overrides:
getAbsolutePath in class LocalHostFile

getChild

public VirtualChild getChild()

isHidden

public boolean isHidden()
Description copied from interface: IHostFile
Determines if the file system object is hidden on the remote file system.

Specified by:
isHidden in interface IHostFile
Overrides:
isHidden in class LocalHostFile

isArchive

public boolean isArchive()
Description copied from interface: IHostFile
Determines if the file system object represents an archive on the remote file system.

Specified by:
isArchive in interface IHostFile
Overrides:
isArchive in class LocalHostFile

renameTo

public void renameTo(String newAbsolutePath)
Description copied from interface: IHostFile
Renames this abstract file handle. This does not physically rename the corresponding file on the remote system, it merely updates internal bookkeeping for a rename operation that needs to be performed separately through an instance of @see IFileService. Therefore, this method cannot fail and no return value is given.

Specified by:
renameTo in interface IHostFile
Overrides:
renameTo in class LocalHostFile
See Also:
LocalHostFile.renameTo(java.lang.String)

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.