Package org.apache.torque.generator.file
Klasse WildcardFilter
java.lang.Object
org.apache.torque.generator.file.WildcardFilter
- Alle implementierten Schnittstellen:
FileFilter
A filter evaluating a file name against a wildcard expression.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungWildcardFilter
(String expression, boolean acceptDir, boolean acceptFile) Constructor. -
Methodenübersicht
-
Konstruktordetails
-
WildcardFilter
Constructor.- Parameter:
expression
- The wildcard expression against which the file names are checked.acceptDir
- Whether directories are accepted at all.acceptFile
- Whether files are accepted at all.
-
-
Methodendetails
-
accept
Returns whether a file matches the criteria of this filter. If the file is a directory andacceptDir
is false, the file is rejected. If the file is regular file andacceptFile
is false, the file is rejected. If the filename does not match the wildcard filter, the file is rejected. If none of the above applies, the file is accepted.- Angegeben von:
accept
in SchnittstelleFileFilter
- Gibt zurück:
- false if the file is rejected, true if it is accepted.
-