Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.ifs.files
Class UniversalFileSystemFilter

java.lang.Object
  extended by com.ibm.etools.iseries.services.ifs.files.UniversalFileSystemFilter
All Implemented Interfaces:
FilenameFilter
Direct Known Subclasses:
IFSFileSystemFilter

public class UniversalFileSystemFilter
extends Object
implements FilenameFilter


Field Summary
protected  boolean allowDirs
           
protected  boolean allowFiles
           
protected  boolean caseSensitive
           
static String Copyright
           
protected  String filter
           
protected  NamePatternMatcher folderNameMatcher
           
protected  int includeFilesOrFolders
           
protected  IMatcher matcher
           
 
Constructor Summary
UniversalFileSystemFilter(String fString, boolean files, boolean folders, boolean caseSensitive)
          Insert the method's description here.
 
Method Summary
 boolean accept(File dir, String nameFilter)
          Tests if a specified file should be included in a file list.
protected  void setListValues(int includeFilesOrFolders, String nameFilter)
           
protected  void setListValues(int includeFilesOrFolders, String folderNameFilter, String fileNameFilter)
          Overloaded method to set variables to affect the folder content subsetting, when there is separate filters for both folder names and filter names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

filter

protected String filter

allowDirs

protected boolean allowDirs

allowFiles

protected boolean allowFiles

caseSensitive

protected boolean caseSensitive

matcher

protected IMatcher matcher

folderNameMatcher

protected NamePatternMatcher folderNameMatcher

includeFilesOrFolders

protected int includeFilesOrFolders
Constructor Detail

UniversalFileSystemFilter

public UniversalFileSystemFilter(String fString,
                                 boolean files,
                                 boolean folders,
                                 boolean caseSensitive)
Insert the method's description here. Creation date: (2/22/01 1:15:54 PM)

Parameters:
filter - java.lang.String
Method Detail

accept

public boolean accept(File dir,
                      String nameFilter)
Tests if a specified file should be included in a file list.

Specified by:
accept in interface FilenameFilter
Parameters:
dir - the directory in which the file was found.
name - the name of the file.
Returns:
true if and only if the name should be included in the file list; false otherwise.

setListValues

protected void setListValues(int includeFilesOrFolders,
                             String nameFilter)

setListValues

protected void setListValues(int includeFilesOrFolders,
                             String folderNameFilter,
                             String fileNameFilter)
Overloaded method to set variables to affect the folder content subsetting, when there is separate filters for both folder names and filter names.

Parameters:
includeFilesOrFolders - A constant from com.ibm.etools.systems.subsystems.IFileConstants
folderNameFilter - The pattern to filter the folder names by. Can be null to include all folders
nameFilter - The pattern to filter the file names by. Can be null to include all files

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.