ERDDelayedSelectorInvocationAssignment Class Reference

Inherits er::directtoweb::assignments::delayed::ERDDelayedAssignment, and er::directtoweb::assignments::ERDComputingAssignmentInterface.

Collaboration diagram for ERDDelayedSelectorInvocationAssignment:

Collaboration graph
[legend]

List of all members.

Classes

class  DefaultImplementation

Public Member Functions

NSArray dependentKeys (String keyPath)
 ERDDelayedSelectorInvocationAssignment (String key, Object value)
 ERDDelayedSelectorInvocationAssignment (EOKeyValueUnarchiver u)
Object fireNow (D2WContext c)

Static Public Member Functions

static Object decodeWithKeyValueUnarchiver (EOKeyValueUnarchiver eokeyvalueunarchiver)


Detailed Description

Similar in nature to a key-value assignment, but allows you to construct arbitrary method invocations to resolve rules. As a somewhat contrived example, assume we're inferring on the componentName rule:

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:


Constructor & Destructor Documentation

ERDDelayedSelectorInvocationAssignment ( EOKeyValueUnarchiver  u  ) 

ERDDelayedSelectorInvocationAssignment ( String  key,
Object  value 
)


Member Function Documentation

static Object decodeWithKeyValueUnarchiver ( EOKeyValueUnarchiver  eokeyvalueunarchiver  )  [static]

NSArray dependentKeys ( String  keyPath  ) 

Object fireNow ( D2WContext  c  )  [virtual]

Implemented by subclasses.

Implements ERDDelayedAssignment.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:50 2012 for Project Wonder by  doxygen 1.5.8