public class ERDDelayedSelectorInvocationAssignment extends ERDDelayedAssignment implements ERDComputingAssignmentInterface
entity.name = 'Person' and propertyKey = 'username' -> componentName = (object, componentForKey, propertyKey)
Resolving the rule for componentName, would end up invoking the componentForKey(Object)
method on the current object
from the rule context, passing the current propertyKey through for the argument. This would boil down to
object.componentForKey("username")
.
The array in the value for this assignment must have two or more objects. The first object is a key path evaluated on the rule context to find the target of the selector. The second object is the selector name, it is a constant and is not evaluated on the rule context. All subsequent objects in the array are treated as key paths to resolve on the rule context to get the arguments for the selector.
Assumptions:
Modifier and Type | Class and Description |
---|---|
static class |
ERDDelayedSelectorInvocationAssignment.DefaultImplementation |
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
_CLASS
Constructor and Description |
---|
ERDDelayedSelectorInvocationAssignment(EOKeyValueUnarchiver u) |
ERDDelayedSelectorInvocationAssignment(String key,
Object value) |
Modifier and Type | Method and Description |
---|---|
static Object |
decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver) |
NSArray |
dependentKeys(String keyPath) |
Object |
fireNow(com.webobjects.directtoweb.D2WContext c)
Implemented by subclasses.
|
fire
public ERDDelayedSelectorInvocationAssignment(EOKeyValueUnarchiver u)
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
public NSArray dependentKeys(String keyPath)
dependentKeys
in interface ERDComputingAssignmentInterface
public Object fireNow(com.webobjects.directtoweb.D2WContext c)
ERDDelayedAssignment
fireNow
in class ERDDelayedAssignment
Copyright © 2002 – 2024 Project Wonder.