WebObjects 5.4

com.webobjects.appserver
Interface WOAssociationFactory

All Known Implementing Classes:
WODefaultAssociationFactory

public interface WOAssociationFactory

Since:
5.4

Method Summary
 WOAssociation createConstantAssociation(Object value)
          Creates a new WOAssociation with a constant value.
 WOAssociation createKeyValueAssociation(String keyPath)
          Creates a new WOAssociation that reads from a Key-Value Coding expression.
 WOAssociation createSchemedAssociation(String scheme, String content)
          Creates a WOAssociation with the given scheme name and content.
 

Method Detail

createConstantAssociation

WOAssociation createConstantAssociation(Object value)
Creates a new WOAssociation with a constant value.

Parameters:
value - constant value
Returns:
WOAssocation with a constant value.
Since:
5.4

createKeyValueAssociation

WOAssociation createKeyValueAssociation(String keyPath)
Creates a new WOAssociation that reads from a Key-Value Coding expression. If the expression is a parent binding the keyPath will start with the "^" character.

Parameters:
keyPath - Key path to use. May start with "^" for parent association
Returns:
WOAssociation that binds to a key-value coding expression
Since:
5.4

createSchemedAssociation

WOAssociation createSchemedAssociation(String scheme,
                                       String content)
                                       throws WOSchemeNotSupportedException
Creates a WOAssociation with the given scheme name and content. The content is the unparsed contents of the scheme specifier and will have to be interpreted by the scheme handler.

Parameters:
scheme - Name of the scheme to which the content belongs.
content - Raw text of the scheme contents.
Returns:
WOAssociation for the given scheme and content.
Throws:
WOSchemeNotSupportedException
Since:
5.4

Last updated Tuesday, October 9, 2007 08:58 PDT

Copyright © 2000-2007 Apple Inc.