public class AssertMatches extends RegexMatcher implements ValueAssertion<java.util.regex.Matcher>
Tuple
by joining each individual element of the Tuple with a tab character (\t).
See AssertMatchesAll
if you need to match the patternString regex against each individual tuple element.
This operation uses Matcher
internally, specifically the method Matcher.find()
.Matcher
,
Pattern
,
Serialized FormnegateMatch
patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
AssertMatches(java.lang.String patternString)
Constructor AssertMatches creates a new AssertMatches instance.
|
AssertMatches(java.lang.String patternString,
boolean negateMatch)
Constructor AssertMatches creates a new AssertMatches instance.
|
Modifier and Type | Method and Description |
---|---|
void |
doAssert(FlowProcess flowProcess,
ValueAssertionCall<java.util.regex.Matcher> assertionCall)
Method doAssert performs the assertion.
|
boolean |
supportsPlannerLevel(PlannerLevel plannerLevel) |
equals, hashCode, isNegateMatch, matchEachElement, matchEachElementPos, matchWholeTuple, prepare
getPattern, getPatternString
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare
@ConstructorProperties(value="patternString") public AssertMatches(java.lang.String patternString)
patternString
- of type String@ConstructorProperties(value={"patternString","negateMatch"}) public AssertMatches(java.lang.String patternString, boolean negateMatch)
patternString
- of type StringnegateMatch
- of type booleanpublic boolean supportsPlannerLevel(PlannerLevel plannerLevel)
supportsPlannerLevel
in interface PlannedOperation<java.util.regex.Matcher>
public void doAssert(FlowProcess flowProcess, ValueAssertionCall<java.util.regex.Matcher> assertionCall)
ValueAssertion
doAssert
in interface ValueAssertion<java.util.regex.Matcher>
flowProcess
- of type FlowProcessassertionCall
- of type ValueAssertionCall