|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jmw.tzap.AbstractFilter
public abstract class AbstractFilter
The abstract filter defineing the basic functionality shared by the derived filters.
Field Summary | |
---|---|
protected static java.lang.String |
encoding
|
protected static int |
MSG_DEBUG
|
protected static int |
MSG_ERR
|
protected static int |
MSG_INFO
|
protected static int |
MSG_VERBOSE
|
protected static int |
MSG_WARN
|
protected static org.apache.tools.ant.Task |
task
|
Constructor Summary | |
---|---|
AbstractFilter()
constructor |
Method Summary | |
---|---|
abstract FilterFile[] |
execute(FilterFile[] files)
Processes all FilterFiles that this filter is supposed to filter. |
java.lang.String |
getName()
Gets the name of this filter for display in log messages. |
abstract void |
load()
Does any initilaztion of the filter before it can be used. |
protected void |
log(java.lang.String msg)
Sends an info level log message to the task |
protected void |
log(java.lang.String msg,
int level)
Sends a log message of specified level to the task. |
static void |
setEncoding(java.lang.String e)
Sets the file encoding that the filters will be using. |
static void |
setTask(org.apache.tools.ant.Task t)
Sets the task that this filter is part of. |
abstract void |
unload()
Does any clean up after the filter has been finished. |
abstract void |
validateParameters()
Validates any parameters needed by the child filters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String encoding
protected static org.apache.tools.ant.Task task
protected static int MSG_DEBUG
protected static int MSG_INFO
protected static int MSG_WARN
protected static int MSG_ERR
protected static int MSG_VERBOSE
Constructor Detail |
---|
public AbstractFilter()
Method Detail |
---|
public abstract void load()
public abstract void unload()
public abstract FilterFile[] execute(FilterFile[] files) throws java.lang.Exception
files
- the FilterFiles that are to be filtered
java.lang.Exception
- if something goes wrong during processingpublic abstract void validateParameters() throws java.lang.Exception
an
- exception if parameter tests fail.
java.lang.Exception
public static void setEncoding(java.lang.String e)
endcoding
- the file encoding typepublic static void setTask(org.apache.tools.ant.Task t)
task
- the containing taskpublic java.lang.String getName()
protected void log(java.lang.String msg)
msg
- the messageprotected void log(java.lang.String msg, int level)
msg
- the messagelevel
- the message level
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |