RSE
Release 1.0

org.eclipse.rse.subsystems.files.local.model
Class LocalFile

java.lang.Object
  extended byorg.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
      extended byorg.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
          extended byorg.eclipse.rse.subsystems.files.local.model.LocalFile
All Implemented Interfaces:
Cloneable, Comparable, IAdaptable, IRemoteContainer, IRemoteFile, IRemotePropertyHolder, ISchedulingRule, ISystemContainer
Direct Known Subclasses:
LocalVirtualFile

public class LocalFile
extends AbstractRemoteFile
implements IRemoteFile


Field Summary
protected  String _classification
           
protected  LocalHostFile _localHostFile
           
 
Fields inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
_classiciation, _hostFile, _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
LocalFile(FileServiceSubSystem subSystem, IRemoteFileContext context, IRemoteFile parent, LocalHostFile hostFile)
           
 
Method Summary
 String getCanonicalPath()
          Returns the canonical path of the remote file.
 String getClassification()
          Returns the classification of this file.
 Object getFile()
          Get the object.
 boolean isVirtual()
           
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
canRead, canWrite, compareTo, exists, getAbsolutePath, getHostFile, getLabel, getLastModified, getLength, getName, getParentName, getParentNoRoot, getParentPath, getParentRemoteFileSubSystem, getRoot, getSystemConnection, isDirectory, isFile, isHidden, isRoot, showBriefPropertySet, showReadOnlyProperty
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
contains, containsFilterKey, copyContentsTo, equals, getAbsolutePathPlusConnection, getAdapter, getAllFilterStrings, getComment, getContents, getContents, getContext, getExtension, 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, 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
canRead, canWrite, compareTo, exists, getAbsolutePath, getAbsolutePathPlusConnection, getAllFilterStrings, getComment, getExtension, getFilterString, getHostFile, getLabel, getLastModified, getLastModifiedDate, getLength, getLineSeparator, getName, getParentName, getParentNoRoot, getParentPath, getParentRemoteFile, getParentRemoteFileSubSystem, getRoot, getSeparator, getSeparatorChar, getSystemConnection, isAncestorOf, isArchive, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isHidden, isLink, isRoot, isText, showBriefPropertySet, showReadOnlyProperty
 
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

_localHostFile

protected LocalHostFile _localHostFile

_classification

protected String _classification
Constructor Detail

LocalFile

public LocalFile(FileServiceSubSystem subSystem,
                 IRemoteFileContext context,
                 IRemoteFile parent,
                 LocalHostFile hostFile)
Method Detail

getFile

public Object getFile()
Description copied from interface: IRemoteFile
Get the object.

Specified by:
getFile in interface IRemoteFile
Overrides:
getFile in class RemoteFile

isVirtual

public boolean isVirtual()
Overrides:
isVirtual in class AbstractRemoteFile

getCanonicalPath

public String getCanonicalPath()
Description copied from interface: IRemoteFile
Returns the canonical path of the remote file.

Specified by:
getCanonicalPath in interface IRemoteFile
Returns:
the resolved path if the file is a symbolic link, or

getClassification

public String getClassification()
Description copied from interface: IRemoteFile
Returns the classification of this file. If the file is an executable, then "executable(...)" will be returned. If the file is a symbolic link then it will appear as "link(....):resolvedPath". The resolvedPath is the path that the link resolves to. A symbolic link that resolves to an executable would appear as "link(executable(...)):resolvedPath". By default this should just return "file".

Specified by:
getClassification in interface IRemoteFile
Returns:
the classification.

RSE
Release 1.0

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