er.extensions.foundation
Class ERXArrayUtilities.IsEmptyOperator
java.lang.Object
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");
|
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 |
ERXArrayUtilities.IsEmptyOperator
public ERXArrayUtilities.IsEmptyOperator()
- public empty constructor
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.
Copyright © 2002 – 2007 Project Wonder.