| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--org.jutil.predicate.AbstractPredicate
        |
        +--org.jutil.io.fileset.FilePredicate
              |
              +--org.jutil.io.fileset.BaseDirPredicate
                    |
                    +--org.jutil.io.fileset.PatternPredicate
A class of predicates that check whether a filename matches a certain pattern relative to a base directory.
 
 A PatternPredicate can optionally "contain" another predicate, so it can be used in filesets.
| Fields inherited from class org.jutil.io.fileset.BaseDirPredicate | 
| CVS_REVISION | 
| Fields inherited from interface org.jutil.predicate.Predicate | 
| CVS_REVISION | 
| Constructor Summary | |
| PatternPredicate(java.io.File baseDir,
                 FileNamePattern pattern)Initialize a new PatternPredicate with the given base directory and pattern. | |
| PatternPredicate(java.io.File baseDir,
                 FileNamePattern pattern,
                 Predicate predicate)Initialize a new PatternPredicate with the given base directory, pattern and predicate . | |
| Method Summary | |
|  boolean | enterDirectory(java.io.File directory)FIXME | 
|  boolean | evalFile(java.io.File file) | 
|  java.lang.String | getFullRegexPattern()Return the regex pattern of this PatternPredicate. | 
|  FileNamePattern | getPattern()Return the pattern of this PatternPredicate. | 
|  Predicate | getPredicate() | 
| (package private)  java.lang.String | getRegexSeparator() | 
|  java.util.List | getSubPredicates()Return the subpredicates of this Predicate. | 
|  int | nbSubPredicates()Return the size of this Predicate. | 
|  java.util.List | suggestDirectories()Suggest a list of directories which can contain files that will evaluate to truefor this FilePredicate.
 All files that can make this FilePredicatetruewill
 be in one of the returned directories. | 
| Methods inherited from class org.jutil.io.fileset.BaseDirPredicate | 
| getBaseDir | 
| Methods inherited from class org.jutil.io.fileset.FilePredicate | 
| eval | 
| Methods inherited from class org.jutil.predicate.AbstractPredicate | 
| count, equals, exists, filter, forall | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.jutil.predicate.Predicate | 
| count, equals, eval, exists, filter, forall | 
| Methods inherited from interface org.jutil.java.collections.CollectionOperator | 
| isValidElement | 
| Constructor Detail | 
public PatternPredicate(java.io.File baseDir,
                        FileNamePattern pattern)
baseDir - The base directory for the new PatternPredicate.pattern - The pattern for the new PatternPredicate.
public PatternPredicate(java.io.File baseDir,
                        FileNamePattern pattern,
                        Predicate predicate)
baseDir - The base directory for the new PatternPredicate.pattern - The pattern for the new PatternPredicate.predicate - The predicate for the new PatternPredicate.| Method Detail | 
public FileNamePattern getPattern()
public java.lang.String getFullRegexPattern()
public boolean evalFile(java.io.File file)
                 throws java.lang.Exception
public int nbSubPredicates()
Predicatepublic java.util.List getSubPredicates()
Predicatepublic Predicate getPredicate()
public java.util.List suggestDirectories()
FileSetPredicateSuggest a list of directories which can contain files that
 will evaluate to true for this FilePredicate.
All files that can make this FilePredicate true will
 be in one of the returned directories.
public boolean enterDirectory(java.io.File directory)
java.lang.String getRegexSeparator()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||