public class JSONFilter extends java.lang.Object implements Filter<java.util.Map>
Constructor and Description |
---|
JSONFilter(java.lang.String prefix,
java.util.Map props) |
JSONFilter(java.lang.String prefix,
java.util.Map props,
org.apache.oro.text.regex.Perl5Compiler pc) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
evaluate(java.util.List json,
java.util.Map<java.lang.String,java.lang.Object> params)
It evaluates the JSON list data with the internal predefined filters
and the given parameter map.
|
boolean |
evaluate(long tm,
java.util.Map json)
It evaluates the JSON map data with the internal predefined filters
and returns true if there is a hit or false otherwise.
|
boolean |
evaluate(java.util.Map json,
java.util.Map<java.lang.String,java.lang.Object> params)
It evaluates the JSON map data with the internal predefined filters
and the given parameter map.
|
boolean |
evaluate(java.lang.String json,
java.util.Map<java.lang.String,java.lang.Object> params)
It evaluates the JSON text with the internal predefined filters
and the given parameter map.
|
protected void |
finalize() |
java.lang.String |
format(java.util.List json,
AssetList list,
java.util.Map<java.lang.String,java.lang.Object> params)
formats the JSON list with the predefined formatters, a given list of
JSONSections and a given parameter map.
|
java.lang.String |
format(java.util.Map json,
AssetList list,
java.util.Map<java.lang.String,java.lang.Object> params)
formats the JSON map with the predefined formatters, a given list of
JSONSections and a given parameter map.
|
java.lang.String |
format(java.lang.String json,
AssetList list,
java.util.Map<java.lang.String,java.lang.Object> params)
formats the JSON text with the predefined formatters, a given list of
JSONSections and a given parameter map.
|
boolean |
hasFormatter() |
boolean |
hasSection() |
protected static JSONFilter[] |
initFilters(java.lang.String prefix,
java.lang.String name,
java.util.Map ph) |
public JSONFilter(java.lang.String prefix, java.util.Map props, org.apache.oro.text.regex.Perl5Compiler pc)
public JSONFilter(java.lang.String prefix, java.util.Map props)
public java.lang.String format(java.util.Map json, AssetList list, java.util.Map<java.lang.String,java.lang.Object> params)
public java.lang.String format(java.util.List json, AssetList list, java.util.Map<java.lang.String,java.lang.Object> params)
public java.lang.String format(java.lang.String json, AssetList list, java.util.Map<java.lang.String,java.lang.Object> params)
public boolean evaluate(long tm, java.util.Map json)
public boolean evaluate(java.util.Map json, java.util.Map<java.lang.String,java.lang.Object> params)
public boolean evaluate(java.util.List json, java.util.Map<java.lang.String,java.lang.Object> params)
public boolean evaluate(java.lang.String json, java.util.Map<java.lang.String,java.lang.Object> params)
public boolean hasFormatter()
public boolean hasSection()
public void clear()
protected void finalize()
finalize
in class java.lang.Object
protected static JSONFilter[] initFilters(java.lang.String prefix, java.lang.String name, java.util.Map ph)