testsgen.wttools
Class DirWalkerImpl

java.lang.Object
  |
  +--testsgen.wttools.DirWalkerImpl
All Implemented Interfaces:
DirWalkerIfc

public class DirWalkerImpl
extends java.lang.Object
implements DirWalkerIfc

DirWalkerImpl.java cpntains implementation of DirWalkerIfc interface. It implements searching files in given directory with given file mask.

At the moment it support only simple file mask and one directory to search in. In future it will support more complex file mask and multiple directory searching.

Created: Sun Dec 2 21:39:16 2001

Version:
$Revision: 1.10 $
Author:
Artur Hefczyc

Inner Class Summary
 class DirWalkerImpl.MaskFilter
           
 
Field Summary
protected  java.lang.String file_dir
           
protected  java.lang.String file_mask
           
protected  boolean force
           
protected  LogIfc log
           
protected  PropertyIfc property
           
protected  boolean recursive
           
protected  boolean test_only
           
 
Constructor Summary
DirWalkerImpl()
           
 
Method Summary
protected  java.util.ArrayList getAllDirs(java.io.File dir)
           
protected  java.util.ArrayList getFilesFromDir(java.io.File dir, DirWalkerImpl.MaskFilter mask)
           
 java.lang.String[] getSourceFiles()
           
protected  void setJobParameters()
           
 void setLogHandler(LogIfc log_handler)
           
 void setPropertyHandler(PropertyIfc property_handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected LogIfc log

property

protected PropertyIfc property

test_only

protected boolean test_only

recursive

protected boolean recursive

force

protected boolean force

file_mask

protected java.lang.String file_mask

file_dir

protected java.lang.String file_dir
Constructor Detail

DirWalkerImpl

public DirWalkerImpl()
Method Detail

setLogHandler

public void setLogHandler(LogIfc log_handler)
Specified by:
setLogHandler in interface DirWalkerIfc
Parameters:
log_handler -

setPropertyHandler

public void setPropertyHandler(PropertyIfc property_handler)
Specified by:
setPropertyHandler in interface DirWalkerIfc
Parameters:
property_handler -

getFilesFromDir

protected java.util.ArrayList getFilesFromDir(java.io.File dir,
                                              DirWalkerImpl.MaskFilter mask)

getAllDirs

protected java.util.ArrayList getAllDirs(java.io.File dir)

getSourceFiles

public java.lang.String[] getSourceFiles()
Specified by:
getSourceFiles in interface DirWalkerIfc
Parameters:
dir -
mask -
recur -  
Returns:

setJobParameters

protected void setJobParameters()


Copyright GNU, wttools developers Team.