WebObjects 5.2.3

com.webobjects.directtoweb
Class EntityAssignment

java.lang.Object
  extended bycom.webobjects.directtoweb.Assignment
      extended bycom.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 inherited from class 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)
          This method is intentionally undocumented.
 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(String, Object), Assignment.Assignment(EOKeyValueUnarchiver)
Method Detail

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Description copied from class: Assignment
This method is intentionally undocumented. You should never have to invoke or customize it.


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

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.