public class AssertMatchesAll extends RegexMatcher implements ValueAssertion<java.util.regex.Matcher>
Tuple
element individually. See AssertMatches
if you need to match the patternString regex against
the tuple as a whole.
This operation uses Matcher
internally, specifically the method Matcher.find()
.
Note a null
valued argument passed to the parser will be converted to an empty string (""
) before
the regex is applied.
Any Object value will be coerced to a String type via any provided CoercibleType
on
the argument selector or via its toString()
method.Matcher
,
Pattern
,
Serialized FormDEFAULT_DELIM, delimiter, negateMatch
patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
AssertMatchesAll(java.lang.String patternString)
Constructor AssertMatchesAll creates a new AssertMatchesAll instance.
|
AssertMatchesAll(java.lang.String patternString,
boolean negateMatch)
Constructor AssertMatchesAll creates a new AssertMatchesAll 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, getDelimiter, 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 AssertMatchesAll(java.lang.String patternString)
patternString
- of type String@ConstructorProperties(value={"patternString","negateMatch"}) public AssertMatchesAll(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 ValueAssertionCallCopyright © 2007-2015 Xplenty, Inc. All Rights Reserved.