Project Wonder 5.0.0.8795

er.extensions.foundation
Class ERXArrayUtilities.IsEmptyOperator

java.lang.Object
  extended by er.extensions.foundation.ERXArrayUtilities.IsEmptyOperator
All Implemented Interfaces:
NSArray.Operator
Enclosing class:
ERXArrayUtilities

public static class ERXArrayUtilities.IsEmptyOperator
extends Object
implements NSArray.Operator

Define an NSArray.Operator for the key isEmpty.

This allows for key value paths like:

myArray.valueForKey("@isEmpty");


Constructor Summary
ERXArrayUtilities.IsEmptyOperator()
          public empty constructor
 
Method Summary
 Object compute(NSArray array, String keypath)
          returns true if the given array is empty, usefull for WOHyperlink disabled binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXArrayUtilities.IsEmptyOperator

public ERXArrayUtilities.IsEmptyOperator()
public empty constructor

Method Detail

compute

public Object compute(NSArray array,
                      String keypath)
returns true if the given array is empty, usefull for WOHyperlink disabled binding.

Specified by:
compute in interface NSArray.Operator
Parameters:
array - array to be checked.
keypath - name of fetch specification.
Returns:
Boolean.TRUE if array is empty, Boolean.FALSE otherwise.

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.