RSE
Release 3.4

org.eclipse.rse.subsystems.files.core.util
Class SystemRemoteFileMatcher

java.lang.Object
  extended by org.eclipse.rse.core.SystemRemoteObjectMatcher
      extended by org.eclipse.rse.subsystems.files.core.util.SystemRemoteFileMatcher

public class SystemRemoteFileMatcher
extends SystemRemoteObjectMatcher

This class encapsulates all the criteria required to identify a match on a remote system file object.

Use the static method getFileOrFolderMatcher() to get an default instance that matches on any directory of any name.

You only need to instantiate this class if you want to match on a file of a particular name.

See Also:
ISystemRemoteElementAdapter

Field Summary
static String category
           
static String fileType
           
static String folderType
           
static SystemRemoteFileMatcher inst
           
static SystemRemoteFileMatcher instFiles
           
static SystemRemoteFileMatcher instFolders
           
 
Fields inherited from class org.eclipse.rse.core.SystemRemoteObjectMatcher
STAR_SYMBOL, STAR_SYMBOL_LEN, STAR_SYMBOL2
 
Constructor Summary
SystemRemoteFileMatcher(String nameFilter)
          Constructor when you want to match on either folders or files You only need to instantiate yourself if you want to match on files/folder of a particular name Otherwise, call SystemRemoteFileMatcher(String, boolean).
SystemRemoteFileMatcher(String nameFilter, boolean foldersOnly)
          Constructor when you want to only list files or only list folders You only need to instantiate yourself if you want to match on files/folder of a particular name Otherwise, call SystemRemoteFileMatcher(String).
 
Method Summary
static SystemRemoteFileMatcher getFileOnlyMatcher()
          Return an instance that will match on any file of any name from any remote system
static SystemRemoteFileMatcher getFileOrFolderMatcher()
          Return an instance that will match on any file or folder of any name from any remote system
static SystemRemoteFileMatcher getFolderOnlyMatcher()
          Return an instance that will match on any folder of any name from any remote system
 
Methods inherited from class org.eclipse.rse.core.SystemRemoteObjectMatcher
appliesTo, endsWithAsterisk, getCategoryFilter, getNameFilter, getSubSubTypeFilter, getSubSystemConfigurationCategoryFilter, getSubSystemConfigurationId, getSubTypeFilter, getSystemTypesFilter, getTypeFilter, resolveSymbols, startsWithAsterisk, stripLeadingAsterisk, stripTrailingAsterisk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

public static SystemRemoteFileMatcher inst

instFiles

public static SystemRemoteFileMatcher instFiles

instFolders

public static SystemRemoteFileMatcher instFolders

category

public static final String category
See Also:
Constant Field Values

fileType

public static final String fileType
See Also:
Constant Field Values

folderType

public static final String folderType
See Also:
Constant Field Values
Constructor Detail

SystemRemoteFileMatcher

public SystemRemoteFileMatcher(String nameFilter)
Constructor when you want to match on either folders or files You only need to instantiate yourself if you want to match on files/folder of a particular name Otherwise, call SystemRemoteFileMatcher(String, boolean).


SystemRemoteFileMatcher

public SystemRemoteFileMatcher(String nameFilter,
                               boolean foldersOnly)
Constructor when you want to only list files or only list folders You only need to instantiate yourself if you want to match on files/folder of a particular name Otherwise, call SystemRemoteFileMatcher(String).

Method Detail

getFileOrFolderMatcher

public static SystemRemoteFileMatcher getFileOrFolderMatcher()
Return an instance that will match on any file or folder of any name from any remote system


getFolderOnlyMatcher

public static SystemRemoteFileMatcher getFolderOnlyMatcher()
Return an instance that will match on any folder of any name from any remote system


getFileOnlyMatcher

public static SystemRemoteFileMatcher getFileOnlyMatcher()
Return an instance that will match on any file of any name from any remote system


RSE
Release 3.4

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