public class LastStateLatchTransformer extends Object implements FunctionTransformer, Serializable
throwContinueOnStateChange is true it will trigger a state change event on DELIM1 & DELIM2.
matcherValues,
for use case where this can be applied,
Serialized Form| Constructor and Description |
|---|
LastStateLatchTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getLastState()
The last state encountered
|
Collection |
getMatcherValues()
If any of the this matches the input (including null values) it will result in the state change to the latest matching value in matcherValues
|
boolean |
isThrowContinueOnStateChange()
If true, if the input triggers a State change (based on the result of
matches(Object)); then throw a ContinueProcessingException
Useful if we want to exclude the cause of the state change itself |
protected boolean |
matches(Object input) |
void |
setLastState(Object lastState)
The last state encountered
|
void |
setMatcherValues(Collection matcherValues)
If any of the this matches the input (including null values) it will result in the state change to the latest matching value in matcherValues
|
void |
setThrowContinueOnStateChange(boolean throwContinueOnStateChange)
If true, if the input triggers a State change (based on the result of
matches(Object)); then throw a ContinueProcessingException
Useful if we want to exclude the cause of the state change itself |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyprotected boolean matches(Object input)
public Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic boolean isThrowContinueOnStateChange()
matches(Object)); then throw a ContinueProcessingException
public void setThrowContinueOnStateChange(boolean throwContinueOnStateChange)
matches(Object)); then throw a ContinueProcessingException
public Collection getMatcherValues()
public void setMatcherValues(Collection matcherValues)
public Object getLastState()
public void setLastState(Object lastState)
Copyright © 2018. All rights reserved.