|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.foundation.ERXArrayUtilities.RemoveNullValuesOperator
public static class ERXArrayUtilities.RemoveNullValuesOperator
Define an NSArray.Operator
for the key removeNullValues.
This allows for key value paths like:
myArray.valueForKeyPath("@removeNullValues.someOtherPath");
Which in this case would remove the occurrences of NSKeyValueCoding.Null from myArray
before continuing to process someOtherPath.
BaseOperator
Constructor Summary | |
---|---|
ERXArrayUtilities.RemoveNullValuesOperator()
public empty constructor |
Method Summary | |
---|---|
java.lang.Object |
compute(com.webobjects.foundation.NSArray<?> array,
java.lang.String keypath)
Removes null values from the given array. |
java.lang.Object |
contents(com.webobjects.foundation.NSArray<?> array,
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXArrayUtilities.RemoveNullValuesOperator()
Method Detail |
---|
public java.lang.Object compute(com.webobjects.foundation.NSArray<?> array, java.lang.String keypath)
array
- array to be filtered.keypath
- the key path to follow after filtering
public java.lang.Object contents(com.webobjects.foundation.NSArray<?> array, java.lang.String keypath)
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.
array
- the array value for the operatorkeypath
- the keypath to call on the array argument
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |