utfx.framework
Class TestFileFilter
java.lang.Object
utfx.framework.TestFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class TestFileFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
TestFileFilter implements java.io.FilenameFilter and provides UTF-X with a
default rule on how to find UTF-X test definition files in a given directory.
You may use your own UTF-X test definition filename filter by providing a
class that implements java.io.FilenameFilter.
Copyright © 2004 - University of
Southern Queensland.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General
Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
$Source: /cvs/utf-x/framework/src/java/utfx/framework/TestFileFilter.java,v $
- Version:
- $Revision: 1.2 $ $Date: 2005/03/14 05:54:53 $ $Name: release_0_0_8_alpha $
- Author:
- Jacek Radajewski
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
This method implements the functionality requierd by the FilenameFilter
interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestFileFilter
public TestFileFilter()
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- This method implements the functionality requierd by the FilenameFilter
interface. It is used for filtering UTF-X test definition files. In this
implementation any file that ends with '_test.xml' and does not start
with a '.' or a '#' is passed throught the filter (emacs backup files
start with '.' or '#' and we do not want to include them).
- Specified by:
accept
in interface java.io.FilenameFilter
- Parameters:
dir
- directory where the file was found.name
- file name to test
- Returns:
- true iff the name of the file matches the filter; false
otherwise.