ERXArrayUtilities.FlattenOperator Class Reference

Inherits er::extensions::foundation::ERXArrayUtilities::BaseOperator.

Collaboration diagram for ERXArrayUtilities.FlattenOperator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Object compute (NSArray<?> array, String keypath)
 FlattenOperator ()


Detailed Description

Define an NSArray.Operator for the key flatten.

This allows for key value paths like:

myArray.valueForKey("@flatten.someOtherPath");

Which in this case would return myArray flattened if myArray is an NSArray of NSArrays (of NSArrays etc) before continuing to process someOtherPath.

See also:
BaseOperator

Constructor & Destructor Documentation

FlattenOperator (  ) 

public empty constructor


Member Function Documentation

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

Flattens the given array.

Parameters:
array array to be flattened.
keypath additional keypath
Returns:
value following keypath for flattened array


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