cascading.operation.assertion
Class AssertMatchesAll

java.lang.Object
  extended by cascading.operation.BaseOperation
      extended by cascading.operation.regex.RegexOperation
          extended by cascading.operation.regex.RegexMatcher
              extended by cascading.operation.assertion.AssertMatchesAll
All Implemented Interfaces:
Assertion, Operation, ValueAssertion, Serializable

public class AssertMatchesAll
extends RegexMatcher
implements ValueAssertion

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cascading.operation.regex.RegexMatcher
negateMatch
 
Fields inherited from class cascading.operation.regex.RegexOperation
patternString
 
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs
 
Fields inherited from interface cascading.operation.Operation
ANY
 
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(TupleEntry input)
          Method doAssert performs the assertion.
 
Methods inherited from class cascading.operation.regex.RegexMatcher
matchEachElement, matchEachElementPos, matchWholeTuple
 
Methods inherited from class cascading.operation.regex.RegexOperation
getPattern
 
Methods inherited from class cascading.operation.BaseOperation
getFieldDeclaration, getNumArgs, printOperationInternal, toString, toStringInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cascading.operation.Operation
getFieldDeclaration, getNumArgs
 

Constructor Detail

AssertMatchesAll

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

Parameters:
patternString - of type String

AssertMatchesAll

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

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

doAssert

public void doAssert(TupleEntry input)
Description copied from interface: ValueAssertion
Method doAssert performs the assertion.

Specified by:
doAssert in interface ValueAssertion
Parameters:
input - of type TupleEntry
See Also:
ValueAssertion.doAssert(TupleEntry)


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