Class AssertMatchesAll

  extended by cascading.operation.BaseOperation<C>
      extended by cascading.operation.regex.RegexOperation<Matcher>
          extended by cascading.operation.regex.RegexMatcher
              extended by cascading.operation.assertion.AssertMatchesAll
All Implemented Interfaces:
DeclaresResults, Assertion<Matcher>, Operation<Matcher>, PlannedOperation<Matcher>, ValueAssertion<Matcher>, Traceable, Serializable

public class AssertMatchesAll
extends RegexMatcher
implements ValueAssertion<Matcher>

Class AssertMatchesAll matches the given regular expression patternString against each argument 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 its toString() method.

See Also:
Matcher, Pattern, Serialized Form

Field Summary
Fields inherited from class cascading.operation.regex.RegexMatcher
Fields inherited from class cascading.operation.regex.RegexOperation
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs, trace
Fields inherited from interface cascading.operation.Operation
Constructor Summary
AssertMatchesAll(String patternString)
          Constructor AssertMatchesAll creates a new AssertMatchesAll instance.
AssertMatchesAll(String patternString, boolean negateMatch)
          Constructor AssertMatchesAll creates a new AssertMatchesAll instance.
Method Summary
 void doAssert(FlowProcess flowProcess, ValueAssertionCall<Matcher> assertionCall)
          Method doAssert performs the assertion.
 boolean supportsPlannerLevel(PlannerLevel plannerLevel)
Methods inherited from class cascading.operation.regex.RegexMatcher
equals, hashCode, isNegateMatch, matchEachElement, matchEachElement, matchEachElementPos, matchEachElementPos, matchWholeTuple, matchWholeTuple, prepare
Methods inherited from class cascading.operation.regex.RegexOperation
getPattern, getPatternString
Methods inherited from class cascading.operation.BaseOperation
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cascading.operation.Operation
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare

Constructor Detail


public AssertMatchesAll(String patternString)
Constructor AssertMatchesAll creates a new AssertMatchesAll instance.

patternString - of type String


public AssertMatchesAll(String patternString,
                                                   boolean negateMatch)
Constructor AssertMatchesAll creates a new AssertMatchesAll instance.

patternString - of type String
negateMatch - of type boolean
Method Detail


public boolean supportsPlannerLevel(PlannerLevel plannerLevel)
Specified by:
supportsPlannerLevel in interface PlannedOperation<Matcher>


public void doAssert(FlowProcess flowProcess,
                     ValueAssertionCall<Matcher> assertionCall)
Description copied from interface: ValueAssertion
Method doAssert performs the assertion.

Specified by:
doAssert in interface ValueAssertion<Matcher>
flowProcess - of type FlowProcess
assertionCall - of type ValueAssertionCall

Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.