|
Jacson | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.filter.FilterBase
de.spieleck.app.jacson.filter.FileInsertFilter
Filter to look up lines from a file.
| Field Summary | |
static java.lang.String |
EVAL_NODE
|
protected java.lang.String |
file
File to access |
static java.lang.String |
FILE_NODE
|
protected boolean |
lazyEval
Evaluation type |
protected java.lang.String |
line
Line to access |
static java.lang.String |
LINE_NODE
|
static java.lang.String |
USEONNULL_NODE
|
protected boolean |
useOnNullChunks
Is the filter to be used on "null"-chunks? |
| Fields inherited from class de.spieleck.app.jacson.filter.FilterBase |
drain |
| Constructor Summary | |
FileInsertFilter()
Default constructor. |
|
| Method Summary | |
boolean |
accept(ConfigNode node)
Overwritten accept method. |
java.lang.String |
getLine(java.lang.String filename,
java.lang.String linenumber)
|
void |
init(ConfigNode config,
JacsonRegistry registry)
Overwritten init method. |
void |
putChunk(java.lang.String chunk)
Replace chunk by something found in a file. |
protected java.lang.String |
tryExpand(java.lang.String val,
boolean lazy)
Lazy or non lazy evaluation of value. |
| Methods inherited from class de.spieleck.app.jacson.filter.FilterBase |
setDrain |
| Methods inherited from class de.spieleck.app.jacson.PluginBase |
getRegReport, getRegState, registerReport, registerState, summary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.spieleck.app.jacson.JacsonStately |
registerState |
| Methods inherited from interface de.spieleck.app.jacson.JacsonReporting |
registerReport, summary |
| Field Detail |
public static final java.lang.String EVAL_NODE
public static final java.lang.String LINE_NODE
public static final java.lang.String FILE_NODE
public static final java.lang.String USEONNULL_NODE
protected boolean useOnNullChunks
protected boolean lazyEval
protected java.lang.String line
protected java.lang.String file
| Constructor Detail |
public FileInsertFilter()
| Method Detail |
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
init in interface JacsonRegistrableJacsonConfigExceptionpublic boolean accept(ConfigNode node)
ConfigUtil.verify()
from init())
accept in interface ConfigVerify.Acceptor
public void putChunk(java.lang.String chunk)
throws JacsonException
putChunk in interface JacsonChunkDrainJacsonException
public java.lang.String getLine(java.lang.String filename,
java.lang.String linenumber)
protected java.lang.String tryExpand(java.lang.String val,
boolean lazy)
val - the value to be expanded or notlazy - true means the value needs expanding
|
Spieleck | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||