RSE
Release 3.4

org.eclipse.rse.subsystems.files.core.subsystems
Class RemoteFileContext

java.lang.Object
  extended by org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileContext
All Implemented Interfaces:
IRemoteFileContext

public class RemoteFileContext
extends Object
implements IRemoteFileContext

This interface represents a place to hold contextual information stored within each remote file object.

We store in here information that might be the same for multiple remote file objects, in order to save memory. This way, we can merely hold a reference to a single object, which itself may have numerous pieces of information helpful when processing actions on a particular remote object.


Field Summary
protected  Vector allFilterStrings
           
protected  RemoteFileFilterString filterString
           
protected  IRemoteFile parentFile
           
protected  IRemoteFileSubSystem subsystem
           
 
Constructor Summary
RemoteFileContext()
          Constructor that takes no inputs.
RemoteFileContext(IRemoteFileSubSystem subsystem, IRemoteFile parentFileObject, RemoteFileFilterString filterString)
          Constructor that takes all inputs.
 
Method Summary
 void addFilterString(RemoteFileFilterString additionalFilterString)
          Add an additional filter string.
 RemoteFileFilterString[] getAllFilterStrings()
          Return all the filter string objects applicable to this folder object.
 RemoteFileFilterString getFilterString()
          Return the filter string object resolved to get this object
 IRemoteFile getParentRemoteFile()
          Return the parent remote file object expanded to get this object, or null if no such parent
 IRemoteFileSubSystem getParentRemoteFileSubSystem()
          Return the parent subsystem
 void setFilterString(RemoteFileFilterString filterString)
          Set the filter string object resolved to get this object
 void setParentRemoteFile(IRemoteFile parentFileObject)
          Set the parent remote file object expanded to get this object
 void setParentRemoteFileSubSystem(IRemoteFileSubSystem subsystem)
          Set the parent subsystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subsystem

protected IRemoteFileSubSystem subsystem

parentFile

protected IRemoteFile parentFile

filterString

protected RemoteFileFilterString filterString

allFilterStrings

protected Vector allFilterStrings
Constructor Detail

RemoteFileContext

public RemoteFileContext(IRemoteFileSubSystem subsystem,
                         IRemoteFile parentFileObject,
                         RemoteFileFilterString filterString)
Constructor that takes all inputs.


RemoteFileContext

public RemoteFileContext()
Constructor that takes no inputs.

Method Detail

setParentRemoteFileSubSystem

public void setParentRemoteFileSubSystem(IRemoteFileSubSystem subsystem)
Set the parent subsystem

Specified by:
setParentRemoteFileSubSystem in interface IRemoteFileContext

setParentRemoteFile

public void setParentRemoteFile(IRemoteFile parentFileObject)
Set the parent remote file object expanded to get this object

Specified by:
setParentRemoteFile in interface IRemoteFileContext

setFilterString

public void setFilterString(RemoteFileFilterString filterString)
Set the filter string object resolved to get this object

Specified by:
setFilterString in interface IRemoteFileContext

addFilterString

public void addFilterString(RemoteFileFilterString additionalFilterString)
Add an additional filter string. This is called for folders in a multi-filter string filter. It is called for each filter string that lists the contents of the same parent path, when show subdirs is true. It is needed to support the subsequent expansion of this subdirectory, so that it can filter on all the appropriate filter strings.

Specified by:
addFilterString in interface IRemoteFileContext

getParentRemoteFileSubSystem

public IRemoteFileSubSystem getParentRemoteFileSubSystem()
Return the parent subsystem

Specified by:
getParentRemoteFileSubSystem in interface IRemoteFileContext

getParentRemoteFile

public IRemoteFile getParentRemoteFile()
Return the parent remote file object expanded to get this object, or null if no such parent

Specified by:
getParentRemoteFile in interface IRemoteFileContext

getFilterString

public RemoteFileFilterString getFilterString()
Return the filter string object resolved to get this object

Specified by:
getFilterString in interface IRemoteFileContext

getAllFilterStrings

public RemoteFileFilterString[] getAllFilterStrings()
Return all the filter string objects applicable to this folder object.

Specified by:
getAllFilterStrings in interface IRemoteFileContext

RSE
Release 3.4

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