de.spieleck.app.jacson.filter
Class JacsonStateFilter
java.lang.Object
de.spieleck.app.jacson.PluginBase
de.spieleck.app.jacson.filter.FilterBase
de.spieleck.app.jacson.filter.ConstFilter
de.spieleck.app.jacson.filter.JacsonStateFilter
- All Implemented Interfaces:
- ConfigVerify.Acceptor, FilterNames, JacsonChunkDrain, JacsonFilter, JacsonRegistrable, JacsonReporting, JacsonStately
- public class JacsonStateFilter
- extends ConstFilter
Filtering chunks depending on the current JacsonState
- Author:
- Patrick Carl, fsn
Field Summary |
static int |
LIMIT
if more possible values of the parameter exists than LIMIT is, then
a THashSet will be used to store the values, otherwise an Array is used |
static java.lang.String |
PARAMETER_NAME_NODE
This node determines which attribute of the JacsonState is examined |
static java.lang.String |
PARAMETER_VALUE_NODE
These node determines the values which are accepted. |
protected java.lang.String |
parameterName
the parameter which is examined to determine whether a chunk is filtered
or not |
protected java.lang.String[] |
parameterValue
|
protected gnu.trove.THashSet |
parameterValueSet
|
protected boolean |
usingArray
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_NAME_NODE
public static final java.lang.String PARAMETER_NAME_NODE
- This node determines which attribute of the JacsonState is examined
- See Also:
- Constant Field Values
PARAMETER_VALUE_NODE
public static final java.lang.String PARAMETER_VALUE_NODE
- These node determines the values which are accepted.
- See Also:
- Constant Field Values
LIMIT
public static final int LIMIT
- if more possible values of the parameter exists than LIMIT is, then
a THashSet will be used to store the values, otherwise an Array is used
- See Also:
- Constant Field Values
parameterName
protected java.lang.String parameterName
- the parameter which is examined to determine whether a chunk is filtered
or not
parameterValue
protected java.lang.String[] parameterValue
parameterValueSet
protected gnu.trove.THashSet parameterValueSet
usingArray
protected boolean usingArray
JacsonStateFilter
public JacsonStateFilter()
- Creates a new instance of JacsonStateFilter
init
public void init(ConfigNode config,
JacsonRegistry registry)
throws JacsonConfigException
- Specified by:
init
in interface JacsonRegistrable
- Overrides:
init
in class ConstFilter
- Throws:
JacsonConfigException
accept
public boolean accept(ConfigNode node)
- Specified by:
accept
in interface ConfigVerify.Acceptor
- Overrides:
accept
in class ConstFilter
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 ConstFilter
- Throws:
JacsonException
Copyleft 2002 spieleck.de.