public class AssertMatches extends RegexMatcher implements ValueAssertion<Matcher>
Tuple
by joining each individual element of the Tuple with a tab character (\t) unless
otherwise specified.
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()
.
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 |
---|
AssertMatches(String patternString)
Constructor AssertMatches creates a new AssertMatches instance.
|
AssertMatches(String patternString,
boolean negateMatch)
Constructor AssertMatches creates a new AssertMatches instance.
|
AssertMatches(String patternString,
boolean negateMatch,
String delimiter)
Constructor AssertMatches creates a new AssertMatches instance.
|
AssertMatches(String patternString,
String delimiter)
Constructor AssertMatches creates a new AssertMatches instance.
|
Modifier and Type | Method and Description |
---|---|
void |
doAssert(FlowProcess flowProcess,
ValueAssertionCall<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 AssertMatches(String patternString)
patternString
- of type String@ConstructorProperties(value={"patternString","delimiter"}) public AssertMatches(String patternString, String delimiter)
patternString
- of type Stringdelimiter
- of type String@ConstructorProperties(value={"patternString","negateMatch"}) public AssertMatches(String patternString, boolean negateMatch)
patternString
- of type StringnegateMatch
- of type boolean@ConstructorProperties(value={"patternString","negateMatch","delimiter"}) public AssertMatches(String patternString, boolean negateMatch, String delimiter)
patternString
- of type StringnegateMatch
- of type booleandelimiter
- of type Stringpublic boolean supportsPlannerLevel(PlannerLevel plannerLevel)
supportsPlannerLevel
in interface PlannedOperation<Matcher>
public void doAssert(FlowProcess flowProcess, ValueAssertionCall<Matcher> assertionCall)
ValueAssertion
doAssert
in interface ValueAssertion<Matcher>
flowProcess
- of type FlowProcessassertionCall
- of type ValueAssertionCallCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.