Jacson

de.spieleck.app.jacson.filter
Class SetStateParamFilter

java.lang.Object
  extended byde.spieleck.app.jacson.PluginBase
      extended byde.spieleck.app.jacson.filter.FilterBase
          extended byde.spieleck.app.jacson.filter.SetStateParamFilter
All Implemented Interfaces:
JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately

public class SetStateParamFilter
extends FilterBase

This filter sets a state of Jacson state.
The state is set during initialization. The actual filtering behaviour is inherited from ConstFilter

Author:
Patrick Carl

Field Summary
static java.lang.String PARAMETER_NAME_NODE
           
static java.lang.String PARAMETER_NODE
           
static java.lang.String PARAMETER_VALUE_NODE
           
static java.lang.String REPEATING_NODE
           
 
Fields inherited from class de.spieleck.app.jacson.filter.FilterBase
drain
 
Constructor Summary
SetStateParamFilter()
          Creates a new instance of SetStateFilter
 
Method Summary
 boolean accept(ConfigNode node)
           
 void init(ConfigNode config, JacsonRegistry registry)
          nits this filter and sets params of the registered JacsonState
 void putChunk(java.lang.String chunk)
          Feed a single chunk into this filter
 
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

PARAMETER_NODE

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

PARAMETER_NAME_NODE

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

PARAMETER_VALUE_NODE

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

REPEATING_NODE

public static final java.lang.String REPEATING_NODE
See Also:
Constant Field Values
Constructor Detail

SetStateParamFilter

public SetStateParamFilter()
Creates a new instance of SetStateFilter

Method Detail

init

public void init(ConfigNode config,
                 JacsonRegistry registry)
          throws JacsonConfigException
nits this filter and sets params of the registered JacsonState

Throws:
JacsonConfigException

accept

public boolean accept(ConfigNode node)

putChunk

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

Throws:
JacsonException

Spieleck

Copyleft 2002 spieleck.de.