WebObjects 5.4.2

com.webobjects.directtoweb
Class EntityAssignment

java.lang.Object
  extended by com.webobjects.directtoweb.Assignment
      extended by com.webobjects.directtoweb.EntityAssignment
All Implemented Interfaces:
EOKeyValueArchiving, Serializable

public class EntityAssignment
extends Assignment

The EntityAssignment class performs assignment of a key to an object that represents an entity.

See Also:
EOEntity, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Constructor Summary
EntityAssignment(EOKeyValueUnarchiver unarchiver)
          Creates an instance of EntityAssignment based on an EOKeyValueUnarchiver.
EntityAssignment(String keyPath, Object value)
          Creates an instance of EntityAssignment with the specified key path and value.
 
Method Summary
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
           
 Object fire(D2WContext context)
          Gets the entity, in the default model group, specified by the value method.
 
Methods inherited from class com.webobjects.directtoweb.Assignment
encodeWithKeyValueArchiver, keyPath, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityAssignment

public EntityAssignment(String keyPath,
                        Object value)
Creates an instance of EntityAssignment with the specified key path and value.

The current implementation uses a string to represent the name of an entity in the default model group.

The implementation is subject to change in future releases.

Parameters:
keyPath - the key path
value - instance of String
See Also:
Assignment.Assignment(String, Object), EOEntity, EOModelGroup

EntityAssignment

public EntityAssignment(EOKeyValueUnarchiver unarchiver)
Creates an instance of EntityAssignment based on an EOKeyValueUnarchiver.

This is used to read the assignment information from a rule file.

Parameters:
unarchiver - the unarchiver
See Also:
EntityAssignment.EntityAssignment(String, Object), Assignment.Assignment(EOKeyValueUnarchiver)
Method Detail

fire

public Object fire(D2WContext context)
Gets the entity, in the default model group, specified by the value method.

Overrides:
fire in class Assignment
Parameters:
context - instance of D2WContext
Returns:
instance of EOEntity
See Also:
Assignment.fire(D2WContext context), EOEntity, EOModelGroup

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)

Last updated June 2008

Copyright © 2000-2008 Apple Inc.