ERXArrayUtilities.BaseOperator Class Reference

Inherited by ERXArrayUtilities.FetchSpecOperator, ERXArrayUtilities.FlattenOperator, ERXArrayUtilities.LimitOperator, ERXArrayUtilities.RemoveNullValuesOperator, ERXArrayUtilities.ReverseOperator, ERXArrayUtilities.SubarrayWithRangeOperator, and ERXArrayUtilities.UniqueOperator.

List of all members.

Public Member Functions

Object contents (NSArray<?> array, String keypath)


Detailed Description

The BaseOperator is Wonder's core class of NSArray.Operator. This class adds support for chaining multiple array operators in a single keypath via its contents method.

Member Function Documentation

Object contents ( NSArray<?>  array,
String  keypath 
)

Rather than iterating through the array argument calling valueForKeyPath on each array object, this method operates by calling valueForKeyPath on the array argument instead. This method is used by Wonder operators to chain multiple array operators in a single key path.

Parameters:
array the array value for the operator
keypath the keypath to call on the array argument
Returns:
the object value produced by valueForKeyPath, or the array itself if the keypath is empty


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:12 2012 for Project Wonder by  doxygen 1.5.8