Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

allensoft.javacvs.client
Class CVSIgnoreFileFilter  view CVSIgnoreFileFilter download CVSIgnoreFileFilter.java

java.lang.Object
  extended byallensoft.javacvs.client.CVSIgnoreFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class CVSIgnoreFileFilter
extends java.lang.Object
implements java.io.FileFilter

A file filter that decides if a file should be accepted based on rules for CVS ignoring files. The patterns in this filter are the default patterns to ignore. When determining if it should accept a file it will check these patterns as well as looking for .cvsignore files in the user's home directory or the parent directory of the file in question. The default patterns to ignore are retrieved from a setting called "defaultIgnoreFiles". If this has not been set then a hard coded set of patterns will be used instead which are common files for CVS to ignore.


Field Summary
private static java.lang.String[] g_DefaultPatterns
          Defines the default pattern matcher that is always checked.
private static CVSIgnoreFileFilter g_Instance
           
private  boolean m_bAcceptAllFiles
           
private  java.io.FileFilter m_DefaultIgnoreFilter
           
private  java.io.File m_UserIgnoreFile
           
 
Constructor Summary
private CVSIgnoreFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Accepts the file if it should not be ignored by CVS.
 boolean getAcceptAllFiles()
           
static CVSIgnoreFileFilter getInstance()
           
 void setAcceptAllFiles(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g_Instance

private static CVSIgnoreFileFilter g_Instance

m_bAcceptAllFiles

private boolean m_bAcceptAllFiles

m_UserIgnoreFile

private java.io.File m_UserIgnoreFile

m_DefaultIgnoreFilter

private java.io.FileFilter m_DefaultIgnoreFilter

g_DefaultPatterns

private static final java.lang.String[] g_DefaultPatterns
Defines the default pattern matcher that is always checked.

Constructor Detail

CVSIgnoreFileFilter

private CVSIgnoreFileFilter()
Method Detail

getInstance

public static CVSIgnoreFileFilter getInstance()

getAcceptAllFiles

public boolean getAcceptAllFiles()

setAcceptAllFiles

public void setAcceptAllFiles(boolean b)

accept

public boolean accept(java.io.File file)
Accepts the file if it should not be ignored by CVS.

Specified by:
accept in interface java.io.FileFilter