Jacson

de.spieleck.app.jacson.filter
Class SelectionFilterFilter

java.lang.Object
  extended byde.spieleck.app.jacson.JacsonBlock
      extended byde.spieleck.app.jacson.filter.SelectionFilterFilter
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonChunkDrain, JacsonEvaluator, JacsonFilter, JacsonNames, JacsonRegistrable, JacsonReporting, JacsonStately

public class SelectionFilterFilter
extends JacsonBlock
implements JacsonFilter, JacsonNames, ConfigVerify.Acceptor

A very complex filter that applies a JacsonSelect to a chunk, can apply filters on the matches and then remerges the chunk.

Author:
fsn

Nested Class Summary
protected  class SelectionFilterFilter.NewChunkDispatcher
          repeats most of JacsonBlock.ChunkDispatcher
 
Field Summary
protected  boolean block
           
static java.lang.String BLOCK_NODE
           
protected  JacsonChunkDrain drain
           
 java.lang.String filterResult
           
protected  JacsonSelect select
           
 
Fields inherited from class de.spieleck.app.jacson.JacsonBlock
chunkDispatch, evaluators, filters, label, myState
 
Fields inherited from interface de.spieleck.app.jacson.JacsonNames
BLOCKREPORT, JS_DEBUG_FLAG, JS_MAIN_CFG, JS_OBJ_EVAL, JS_OBJ_FILTER, JS_OBJ_LABEL, JS_OBJ_REPORT, JS_OBJ_SELECT, JS_OBJ_SOURCE, JS_PCK_EVAL, JS_PCK_FILTER, JS_PCK_REPORT, JS_PCK_SELECT, JS_PCK_SOURCE, JS_REP_BLOCK, JS_REP_CHUNK, JS_REP_EVAL, JS_REP_FILTER, JS_REP_LABEL, JS_REP_LIST, JS_REP_LOG, JS_REP_NAME, JS_REP_NUMBER, JS_REP_PROC, JS_REP_RESULT, JS_REP_SUMMARY, JS_REP_TIME, JS_REP_TSTAMP, JS_REPORT_CFG, JS_STATE_ID
 
Constructor Summary
SelectionFilterFilter()
           
 
Method Summary
 boolean accept(ConfigNode node)
           
static boolean acceptSelect(ConfigNode node)
           
static JacsonSelect getSelect(ConfigNode node, JacsonRegistry registry)
           
 void init(ConfigNode node, JacsonRegistry registry)
           
 void putChunk(java.lang.String chunk)
          Feed a single chunk into this filter
 void setDrain(JacsonChunkDrain drain)
          Where shall we send (accepted and/or modified) chunks)
 
Methods inherited from class de.spieleck.app.jacson.JacsonBlock
addEvaluator, addFilter, addReport, clearReports, createReport, dispatchChunk, getLabel, getMyDrain, getReport, obtainEvaluators, obtainFilters, obtainReports, registerReport, registerReport, registerState, registerState, setChunkDispatch, summary, 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

BLOCK_NODE

public static final java.lang.String BLOCK_NODE
See Also:
Constant Field Values

drain

protected JacsonChunkDrain drain

select

protected JacsonSelect select

block

protected boolean block

filterResult

public java.lang.String filterResult
Constructor Detail

SelectionFilterFilter

public SelectionFilterFilter()
Method Detail

setDrain

public void setDrain(JacsonChunkDrain drain)
Description copied from interface: JacsonFilter
Where shall we send (accepted and/or modified) chunks)

Specified by:
setDrain in interface JacsonFilter

init

public void init(ConfigNode node,
                 JacsonRegistry registry)
          throws JacsonConfigException
Specified by:
init in interface JacsonRegistrable
Overrides:
init in class JacsonBlock
Throws:
JacsonConfigException

accept

public boolean accept(ConfigNode node)
Specified by:
accept in interface ConfigVerify.Acceptor
Overrides:
accept in class JacsonBlock

acceptSelect

public static boolean acceptSelect(ConfigNode node)

getSelect

public static JacsonSelect getSelect(ConfigNode node,
                                     JacsonRegistry registry)
                              throws JacsonConfigException
Throws:
JacsonConfigException

putChunk

public void putChunk(java.lang.String chunk)
              throws JacsonException
Description copied from interface: JacsonChunkDrain
Feed a single chunk into this filter

Specified by:
putChunk in interface JacsonChunkDrain
Overrides:
putChunk in class JacsonBlock
Throws:
JacsonException

Spieleck

Copyleft 2002 spieleck.de.