org.eclipse.xtend.backend.util
Class GenericFileFilter
java.lang.Object
org.eclipse.xtend.backend.util.GenericFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class GenericFileFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
Configurable FilenameFilter. By default this filter does not accept well known files or directories
managed by source control systems and temporary files.
Ported from org.eclipse.internal.xpand2.pr.util.GenericFileFile to the backend
- See Also:
http://www.cvshome.org/docs/manual/cvs-1.11.10/cvs_18.html#SEC156
Method Summary |
boolean |
accept(java.io.File file)
Accept all files and directories not included in the ignore list. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Accept all files and directories not included in the ignore list. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULTIGNORELIST
public static final java.lang.String DEFAULTIGNORELIST
- See Also:
- Constant Field Values
GenericFileFilter
public GenericFileFilter(java.lang.String aIgnoreList,
boolean aDefaultexcludes)
- Parameters:
aIgnoreList
- List of file patterns to ignore. This list can be comma-separated or space-separated.
Note that file patterns containing commas can't be handled, since they will be recognized as two separated patterns.aDefaultexcludes
- true
use the default exclude list.
GenericFileFilter
public GenericFileFilter(java.lang.String aIgnoreList)
GenericFileFilter
public GenericFileFilter()
- Creates the Filter with default excludes.
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Accept all files and directories not included in the ignore list.
- Specified by:
accept
in interface java.io.FilenameFilter
- Parameters:
dir
- Directory to search in for a filename
- File name to check
- Returns:
true
when the file is accepted by the filter.
accept
public boolean accept(java.io.File file)
- Accept all files and directories not included in the ignore list.
- Parameters:
file
- File to check
- Returns:
true
when the file is accepted by the filter.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object