Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.file
Class FileSetFilters

java.lang.Object
  extended by oracle.ide.file.FileSetFilters


public final class FileSetFilters
extends java.lang.Object

Provides common implementations of FileSetFilter.

Since:
11.1.2

Method Summary
static FileSetFilter getAcceptAllFilter()
          Returns a filter that accepts all files.
static FileSetFilter getFileSetFilter(IntersectedFilters filter)
          Get a filter that adapts a IntersectedFilters instance to a .
static FileSetFilter getFileSetFilter(PatternFilters filters)
          Get a filter that adapts a PatternFilters instance to a .
static FileSetFilter getGlobalFilter()
          Returns a filter that applies to all file sets.
static FileSetFilter getIntersectionFilter(FileSetFilter... filters)
          Returns a filter that is the intersection of a set of filters.
static FileSetFilter getUnionFilter(FileSetFilter... filters)
          Returns a filter that is the union of a set of filters.
static boolean isAcceptAllFilter(FileSetFilter filter)
          Determine whether a filter is the filter that accepts all files (the filter returned by getAcceptAllFilter()).

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getAcceptAllFilter

public static FileSetFilter getAcceptAllFilter()
Returns a filter that accepts all files.
Returns:
a filter that accepts all files

isAcceptAllFilter

public static boolean isAcceptAllFilter(FileSetFilter filter)
Determine whether a filter is the filter that accepts all files (the filter returned by getAcceptAllFilter()).
Parameters:
filter - the filter
Returns:
true if the filter is the filter that accepts all files, false otherwise

getIntersectionFilter

public static FileSetFilter getIntersectionFilter(FileSetFilter... filters)
Returns a filter that is the intersection of a set of filters. A file or directory is only accepted by the filter if it is accepted by all the intersected filters.
Parameters:
filters - the filters to intersect
Returns:
the intersection of the filters

getUnionFilter

public static FileSetFilter getUnionFilter(FileSetFilter... filters)
Returns a filter that is the union of a set of filters. A file or directory is accepted by the filter if it is accepted by any of the unioned filters.
Parameters:
filters - the filters to union
Returns:
the union of the filters

getGlobalFilter

public static FileSetFilter getGlobalFilter()
Returns a filter that applies to all file sets.
Returns:
the global filters

getFileSetFilter

public static FileSetFilter getFileSetFilter(PatternFilters filters)
Get a filter that adapts a PatternFilters instance to a .
Parameters:
filters - the pattern filters
Returns:
the adapted filter

getFileSetFilter

public static FileSetFilter getFileSetFilter(IntersectedFilters filter)
Get a filter that adapts a IntersectedFilters instance to a .
Parameters:
filter - the intersected filters
Returns:
the adapted filter

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.