WebObjects 5.4.2

com.webobjects.appserver
Class WOKeyValueAssociationFactory

java.lang.Object
  extended by com.webobjects.appserver.WOKeyValueAssociationFactory
All Implemented Interfaces:
WOAssociationFactory

public class WOKeyValueAssociationFactory
extends Object
implements WOAssociationFactory

Abstract implementation of WOAssociationFactory that implements creating constant and keyvalue associations. It does not handle Schemed associations. This class is meant to be subclassed to provide schemed associations in another way.

Since:
5.4

Constructor Summary
WOKeyValueAssociationFactory()
           
 
Method Summary
 WOAssociation createAssociation(String scheme, Object value)
          Calls WOAssociation.associationWithKeyPath().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOKeyValueAssociationFactory

public WOKeyValueAssociationFactory()
Method Detail

createAssociation

public WOAssociation createAssociation(String scheme,
                                       Object value)
Calls WOAssociation.associationWithKeyPath(). The value parameter should be a string representing a Key-Value Coding expression.

Specified by:
createAssociation in interface WOAssociationFactory
Parameters:
scheme - Scheme name
value - Key-Value Coding expression
Returns:
WOAssociation

Last updated June 2008

Copyright © 2000-2008 Apple Inc.