com.webobjects.appserver
Class WOConstantAssociationFactory
java.lang.Object
com.webobjects.appserver.WOConstantAssociationFactory
- All Implemented Interfaces:
- WOAssociationFactory
public class WOConstantAssociationFactory
- 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
Method Summary |
WOAssociation |
createAssociation(String name,
Object value)
Default implementation calls WOAssociation.associationWithValue()
or, in the case of a boolean value, uses WOConstantValueAssociation.TRUE
or WOConstantValueAssociation.FALSE. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WOConstantAssociationFactory
public WOConstantAssociationFactory()
createAssociation
public WOAssociation createAssociation(String name,
Object value)
throws WOSchemeNotSupportedException
- Default implementation calls WOAssociation.associationWithValue()
or, in the case of a boolean value, uses WOConstantValueAssociation.TRUE
or WOConstantValueAssociation.FALSE.
- Specified by:
createAssociation
in interface WOAssociationFactory
- Parameters:
value
- name
- Name of the scheme to which the content belongs.
- Returns:
- WOAssociation
- Throws:
WOSchemeNotSupportedException
- See Also:
com.webobjects.appserver.WOAssociationFactory#createConstantAssociation(java.lang.Object)
Copyright © 2000-2008 Apple Inc.