ERXArrayUtilities.IsEmptyOperator Class Reference

List of all members.

Public Member Functions

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


Detailed Description

Define an NSArray.Operator for the key isEmpty.

This allows for key value paths like:

myArray.valueForKey("@isEmpty");

Which in this case would return true if the myArray.count() == 0, or false if it is not. This operator always ends computation. Any keypath following the isEmpty operator is simply ignored.

Constructor & Destructor Documentation

IsEmptyOperator (  ) 

public empty constructor


Member Function Documentation

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

returns true if the given array is empty, usefull for WOHyperlink disabled binding.

Parameters:
array array to be checked.
keypath the keypath. This value is ignored.
Returns:
Boolean.TRUE if array is empty, Boolean.FALSE otherwise.


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