|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileEmpty
public class RemoteFileEmpty
A "dummy" node to use as a place holder
Field Summary |
---|
Fields inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile |
---|
_contents, _context, _isStale, _label, _parentFile, isContainer, properties, propertyStates, remoteObj |
Fields inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile |
---|
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES |
Constructor Summary | |
---|---|
RemoteFileEmpty()
Constructor for RemoteFileEmpty |
Method Summary | |
---|---|
boolean |
canRead()
Returns true if the application can read this file. |
boolean |
canWrite()
Returns true if the application can write to this file. |
int |
compareTo(Object o)
Compare one remote file to another. |
boolean |
exists()
Returns true if this folder or file actually exists. |
String |
getAbsolutePath()
Get fully qualified name: root plus path plus name. |
String |
getCanonicalPath()
Returns the canonical path of the remote file. |
String |
getClassification()
Returns the classification of this file. |
IHostFile |
getHostFile()
|
long |
getLastModified()
Returns the time (in milliseconds since epoch) this file was last modified. |
long |
getLength()
Returns the length, in bytes, of this file. |
String |
getName()
Get unqualified file name. |
String |
getParentName()
Get the unqualified name of the parent directory containing this file or folder. |
String |
getParentNoRoot()
Get fully qualified path and name of folder containing this file or folder, minus the root. |
String |
getParentPath()
Get fully qualified path and name of folder containing this file or folder. |
IHostFilePermissions |
getPermissions()
Override this to provide permissions |
String |
getRoot()
Get the root part of the name. |
boolean |
isDirectory()
Returns true if this represents a folder (eg: c:\\folder) |
boolean |
isFile()
Returns true if this represents a file, versus a root or folder |
boolean |
isHidden()
Returns true if this is a hidden file. |
boolean |
isRoot()
Returns true if this represents a root folder (eg: c:\\ or /). |
boolean |
isVirtual()
|
boolean |
showBriefPropertySet()
Querying properties for the property sheet can be expensive on some operating systems. |
boolean |
showReadOnlyProperty()
Returns true if the ReadOnly Property should be shown in the property page. |
Methods inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile |
---|
contains, containsFilterKey, copyContentsTo, equals, getAbsolutePathPlusConnection, getAdapter, getAllFilterStrings, getComment, getContents, getContents, getContext, getEncoding, getExtension, getFile, getFilterString, getHost, getHostName, getLabel, getLastModifiedDate, getLineSeparator, getParentRemoteFile, getParentRemoteFileSubSystem, getParentRemoteFileSubSystemConfiguration, getProperties, getProperty, getSeparator, getSeparatorChar, hasContents, hasContents, isAncestorOf, isArchive, isBinary, isConflicting, isDescendantOf, isExecutable, isLink, isPropertyStale, isStale, isText, isUnix, markAllPropertiesStale, markPropertyStale, markStale, markStale, replaceContent, setContents, setEncoding, setFile, setFilterString, setIsContainer, setLabel, setParentRemoteFile, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteFileEmpty()
Method Detail |
---|
public String getAbsolutePath()
IRemoteFile
null
.public String getName()
IRemoteFile
public int compareTo(Object o)
RemoteFile
compareTo
in interface Comparable
compareTo
in interface IRemoteFile
compareTo
in class RemoteFile
public boolean isVirtual()
public boolean showBriefPropertySet()
IRemoteFile
public String getParentPath()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in c:\folder1\folder2
public String getParentNoRoot()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in folder1\folder2
public String getRoot()
IRemoteFile
c:\folder1\folder2\file1.ext
results in c:\
/folder1/folder2/file1.ext
results in /
public String getParentName()
IRemoteFile
Example: c:\folder1\folder2\file1.ext
results in folder2
public boolean isRoot()
IRemoteFile
public boolean isDirectory()
IRemoteFile
public boolean isFile()
IRemoteFile
public boolean isHidden()
IRemoteFile
public boolean canRead()
IRemoteFile
public boolean canWrite()
IRemoteFile
public boolean exists()
IRemoteFile
public long getLastModified()
IRemoteFile
public long getLength()
IRemoteFile
public boolean showReadOnlyProperty()
IRemoteFile
public String getClassification()
IRemoteFile
null
if not classifiable.public String getCanonicalPath()
IRemoteFile
public IHostFile getHostFile()
public IHostFilePermissions getPermissions()
getPermissions
in interface IRemoteFile
getPermissions
in class RemoteFile
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |