com.mizar.commons.io.filefilter
Class GenericFilenameFilter

java.lang.Object
  extended by org.apache.commons.io.filefilter.AbstractFileFilter
      extended by com.mizar.commons.io.filefilter.GenericFilenameFilter
All Implemented Interfaces:
java.io.FileFilter, java.io.FilenameFilter, org.apache.commons.io.filefilter.IOFileFilter

public class GenericFilenameFilter
extends org.apache.commons.io.filefilter.AbstractFileFilter


Constructor Summary
GenericFilenameFilter()
           
GenericFilenameFilter(boolean mustExist)
           
GenericFilenameFilter(boolean mustExist, java.util.List<java.lang.String> requiredExtensions)
           
GenericFilenameFilter(boolean mustExist, java.util.List<java.lang.String> requiredExtensions, java.util.List<java.lang.String> prohibitedExtensions)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 boolean accept(java.lang.String dir, java.lang.String name)
           
 java.util.List<java.lang.String> getProhibitedExtensions()
           
 java.util.List<java.lang.String> getRequiredExtensions()
           
 boolean isMustExist()
           
 void setMustExist(boolean mustExist)
           
 void setProhibitedExtensions(java.util.List<java.lang.String> prohibitedExtensions)
           
 void setRequiredExtensions(java.util.List<java.lang.String> requiredExtensions)
           
 
Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilter
accept, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericFilenameFilter

public GenericFilenameFilter()

GenericFilenameFilter

public GenericFilenameFilter(boolean mustExist)

GenericFilenameFilter

public GenericFilenameFilter(boolean mustExist,
                             java.util.List<java.lang.String> requiredExtensions)

GenericFilenameFilter

public GenericFilenameFilter(boolean mustExist,
                             java.util.List<java.lang.String> requiredExtensions,
                             java.util.List<java.lang.String> prohibitedExtensions)
Method Detail

accept

public boolean accept(java.lang.String dir,
                      java.lang.String name)

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter
Specified by:
accept in interface org.apache.commons.io.filefilter.IOFileFilter
Overrides:
accept in class org.apache.commons.io.filefilter.AbstractFileFilter

setMustExist

public void setMustExist(boolean mustExist)

isMustExist

public boolean isMustExist()

setRequiredExtensions

public void setRequiredExtensions(java.util.List<java.lang.String> requiredExtensions)

getRequiredExtensions

public java.util.List<java.lang.String> getRequiredExtensions()

setProhibitedExtensions

public void setProhibitedExtensions(java.util.List<java.lang.String> prohibitedExtensions)

getProhibitedExtensions

public java.util.List<java.lang.String> getProhibitedExtensions()