public class RegexFilter extends AbstractOCEventFilter
Constructor and Description |
---|
RegexFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ContentResult cResult,
java.util.HashMap<java.lang.String,java.lang.Object> additionalParams,
java.lang.String ticket)
Method to evaluate a filter, must return a boolean.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getAttributesRegexMap() |
boolean |
getInvert()
Whether or not we are looking for the opposite of the result returned from
OCEventFilter.evaluate(ContentResult, HashMap, String) |
void |
setAdditionalParamsBool(boolean additionalParamsBool) |
void |
setAttributesRegexMap(java.util.HashMap<java.lang.String,java.lang.String> attributesRegexMap) |
void |
setInvert(boolean invert) |
evaluate
public boolean getInvert()
OCEventFilter
OCEventFilter.evaluate(ContentResult, HashMap, String)
public void setInvert(boolean invert)
public java.util.HashMap<java.lang.String,java.lang.String> getAttributesRegexMap()
public void setAttributesRegexMap(java.util.HashMap<java.lang.String,java.lang.String> attributesRegexMap)
public void setAdditionalParamsBool(boolean additionalParamsBool)
public boolean evaluate(ContentResult cResult, java.util.HashMap<java.lang.String,java.lang.Object> additionalParams, java.lang.String ticket)
OCEventFilter
cResult
- A nice wrapper object to contain document propertiesadditionalParams
- Additional properties (not on the object) that the filter can use to evaluate against