com.jmw.tzap.filters
Class FindMergeFilter

java.lang.Object
  extended by com.jmw.tzap.AbstractFilter
      extended by com.jmw.tzap.IteratingFilter
          extended by com.jmw.tzap.filters.FindFilter
              extended by com.jmw.tzap.filters.FindMergeFilter

public class FindMergeFilter
extends FindFilter

Filter that compares the found values with an existing match file. All original entries are added to the output.

Author:
Judah Wischnitzer

Field Summary
 
Fields inherited from class com.jmw.tzap.filters.FindFilter
count, fileCount, outFile, pattern, set
 
Fields inherited from class com.jmw.tzap.AbstractFilter
encoding, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, task
 
Constructor Summary
FindMergeFilter()
           
 
Method Summary
 void addConfigured(org.apache.tools.ant.types.FileSet fs)
           
protected  void selectFiles()
           
 void setMatchFile(java.lang.String s)
          sets a the match file to be added.
 void setNewOnly(boolean b)
           
 void setOldOnly(boolean b)
           
 void unload()
          Saves the found regex values into a file if a filename was supplied.
 void validateParameters()
          Ensure we have a consistent and legal set of attributes, and set any internal flags necessary based on different combinations of attributes.
 
Methods inherited from class com.jmw.tzap.filters.FindFilter
doFilter, setOutFile, setRegex
 
Methods inherited from class com.jmw.tzap.IteratingFilter
execute, load
 
Methods inherited from class com.jmw.tzap.AbstractFilter
getName, log, log, setEncoding, setTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindMergeFilter

public FindMergeFilter()
Method Detail

setMatchFile

public void setMatchFile(java.lang.String s)
sets a the match file to be added.

Parameters:
s - the name of the file

unload

public void unload()
Description copied from class: FindFilter
Saves the found regex values into a file if a filename was supplied.

Overrides:
unload in class FindFilter

validateParameters

public void validateParameters()
                        throws java.lang.Exception
Ensure we have a consistent and legal set of attributes, and set any internal flags necessary based on different combinations of attributes.

Overrides:
validateParameters in class FindFilter
Throws:
java.lang.Exception - if the processing fails

setNewOnly

public void setNewOnly(boolean b)

setOldOnly

public void setOldOnly(boolean b)

addConfigured

public void addConfigured(org.apache.tools.ant.types.FileSet fs)

selectFiles

protected void selectFiles()