|
RSE Release 2.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.servicesubsystem.AbstractRemoteFile
public abstract class AbstractRemoteFile
| Field Summary | |
|---|---|
protected String |
_classiciation
|
protected IHostFile |
_hostFile
|
protected FileServiceSubSystem |
_subSystem
|
| Fields inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile |
|---|
_contents, _context, _isStale, _label, _parentFile, fullyQualifiedName, isContainer, properties, propertyStates, remoteObj |
| Fields inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile |
|---|
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES |
| Constructor Summary | |
|---|---|
AbstractRemoteFile(FileServiceSubSystem subSystem,
IRemoteFileContext context,
IRemoteFile parent,
IHostFile hostFile)
|
|
| 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 other)
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. |
IHostFile |
getHostFile()
|
String |
getLabel()
Get the display name for this file. |
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()
Deprecated. - shouldn't need apis like this |
String |
getParentPath()
Get fully qualified path and name of folder containing this file or folder. |
IRemoteFileSubSystem |
getParentRemoteFileSubSystem()
Return the parent subsystem |
String |
getRoot()
Deprecated. - shouldn't need apis like this |
IHost |
getSystemConnection()
Return the connection this remote file is from. |
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, getHostName, getLastModifiedDate, getLineSeparator, getParentRemoteFile, 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 |
| Methods inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile |
|---|
getAbsolutePathPlusConnection, getAllFilterStrings, getCanonicalPath, getClassification, getComment, getEncoding, getExtension, getFile, getFilterString, getLastModifiedDate, getLineSeparator, getParentRemoteFile, getSeparator, getSeparatorChar, isAncestorOf, isArchive, isBinary, isDescendantOf, isExecutable, isLink, isText |
| Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteContainer |
|---|
copyContentsTo, getContents, hasContents, replaceContent, setContents |
| Methods inherited from interface org.eclipse.rse.core.model.ISystemContainer |
|---|
getContents, hasContents, isStale, markStale, markStale |
| Methods inherited from interface org.eclipse.rse.core.subsystems.IRemotePropertyHolder |
|---|
getProperties, getProperty, isPropertyStale, markAllPropertiesStale, markPropertyStale, setProperties, setProperty |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
|---|
contains, isConflicting |
| Field Detail |
|---|
protected IHostFile _hostFile
protected FileServiceSubSystem _subSystem
protected String _classiciation
| Constructor Detail |
|---|
public AbstractRemoteFile(FileServiceSubSystem subSystem,
IRemoteFileContext context,
IRemoteFile parent,
IHostFile hostFile)
| Method Detail |
|---|
public IRemoteFileSubSystem getParentRemoteFileSubSystem()
RemoteFile
getParentRemoteFileSubSystem in interface IRemoteFilegetParentRemoteFileSubSystem in class RemoteFilepublic IHost getSystemConnection()
RemoteFile
getSystemConnection in interface IRemoteFilegetSystemConnection in class RemoteFilepublic String getAbsolutePath()
IRemoteFile
getAbsolutePath in interface IRemoteFilegetAbsolutePath in class RemoteFilenull.IRemoteFile.getAbsolutePath()public String getLabel()
IRemoteFile
getLabel in interface IRemoteFilegetLabel in class RemoteFileIRemoteFile.getLabel()public String getName()
IRemoteFile
getName in interface IRemoteFilepublic String getParentPath()
IRemoteFileIf this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext results in c:\folder1\folder2
getParentPath in interface IRemoteFilepublic boolean isRoot()
IRemoteFile
isRoot in interface IRemoteFilepublic boolean isDirectory()
IRemoteFile
isDirectory in interface IRemoteFilepublic boolean isFile()
IRemoteFile
isFile in interface IRemoteFilepublic boolean exists()
IRemoteFile
exists in interface IRemoteFilepublic long getLastModified()
IRemoteFile
getLastModified in interface IRemoteFilepublic long getLength()
IRemoteFile
getLength in interface IRemoteFile
public int compareTo(Object other)
throws ClassCastException
RemoteFile
compareTo in interface ComparablecompareTo in interface IRemoteFilecompareTo in class RemoteFileClassCastExceptionpublic boolean showBriefPropertySet()
IRemoteFile
showBriefPropertySet in interface IRemoteFilepublic String getParentNoRoot()
IRemoteFileIf this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext results in folder1\folder2
getParentNoRoot in interface IRemoteFilepublic String getRoot()
IRemoteFile
c:\folder1\folder2\file1.ext results in c:\
/folder1/folder2/file1.ext results in /
getRoot in interface IRemoteFilepublic String getParentName()
IRemoteFile
Example: c:\folder1\folder2\file1.ext results in folder2
getParentName in interface IRemoteFilepublic boolean isHidden()
IRemoteFile
isHidden in interface IRemoteFilepublic boolean isVirtual()
public boolean canRead()
IRemoteFile
canRead in interface IRemoteFilepublic boolean canWrite()
IRemoteFile
canWrite in interface IRemoteFilepublic boolean showReadOnlyProperty()
IRemoteFile
showReadOnlyProperty in interface IRemoteFilepublic IHostFile getHostFile()
getHostFile in interface IRemoteFile
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||