|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jmw.tzap.AbstractFilter com.jmw.tzap.filters.InsertReferenceFilter
public class InsertReferenceFilter
Replaces a series of file name reference in a buffer
Field Summary | |
---|---|
protected java.lang.StringBuffer |
buff
|
protected java.lang.String |
file
|
protected int |
fileCount
|
protected FilterFile[] |
files
|
protected java.lang.String |
nextDefault
|
protected Sequencer |
orderer
|
protected java.lang.String |
prevDefault
|
Fields inherited from class com.jmw.tzap.AbstractFilter |
---|
encoding, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, task |
Constructor Summary | |
---|---|
InsertReferenceFilter()
|
Method Summary | |
---|---|
void |
add(Sequencer orderer)
Sets the Sequencer. |
java.lang.StringBuffer |
doFilter(java.lang.StringBuffer sb,
java.lang.String fn)
|
FilterFile[] |
execute(FilterFile[] ffs)
Processes all FilterFiles that this filter is supposed to filter. |
void |
load()
Does any initilaztion of the filter before it can be used. |
void |
setNextDefault(java.lang.String nextDefault)
Sets the default to use for the last file when next no longer is valid |
void |
setPrevDefault(java.lang.String prevDefault)
Sets the default to use for the first file when previous is not valid |
void |
unload()
Does any clean up after the filter has been finished. |
void |
validateParameters()
Validates any parameters needed by the child filters. |
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 |
Field Detail |
---|
protected int fileCount
protected java.lang.StringBuffer buff
protected java.lang.String file
protected Sequencer orderer
protected FilterFile[] files
protected java.lang.String nextDefault
protected java.lang.String prevDefault
Constructor Detail |
---|
public InsertReferenceFilter()
Method Detail |
---|
public void load()
AbstractFilter
load
in class AbstractFilter
public void unload()
AbstractFilter
unload
in class AbstractFilter
public FilterFile[] execute(FilterFile[] ffs) throws java.lang.Exception
AbstractFilter
execute
in class AbstractFilter
ffs
- the FilterFiles that are to be filtered
java.lang.Exception
- if something goes wrong during processingpublic java.lang.StringBuffer doFilter(java.lang.StringBuffer sb, java.lang.String fn)
public void add(Sequencer orderer)
orderer
- the orderer to be usedpublic void setPrevDefault(java.lang.String prevDefault)
prevDefault
- the default valuepublic void setNextDefault(java.lang.String nextDefault)
nextDefault
- the default valuepublic void validateParameters() throws java.lang.Exception
AbstractFilter
validateParameters
in class AbstractFilter
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |