Up
Authors
- Manuel Guesdon (
mguesdon@orange-concept.com)
-
Date: Generated at 2025-12-01
Copyright: (C) 1999-2004 Free Software Foundation, Inc.
- Declared in:
- WebObjects/GSWBindingNameAssociation.h
Availability: OpenStep
GSWBindingNameAssociation provides
specialized binding resolution for component
hierarchies where values need to be resolved
through parent component bindings. This class extends
GSWAssociation to support binding name
indirection and hierarchical value resolution
patterns common in component composition scenarios.
GSWBindingNameAssociation declares 2 Instance Variables
- (BOOL)
isImplementedForComponent: (
GSWComponent*)object;
Availability: OpenStep
Returns whether this association is implemented for
the specified component. This method checks if the
parent binding name can be resolved within the
component's binding context and whether the
resulting binding is available and functional.
- (BOOL)
isValueConstant;
Availability: OpenStep
Returns whether this association represents a
constant value. For binding name associations,
this depends on the nature of both the parent binding
and the key path resolution - typically returns
NO as these associations resolve
dynamically through the component hierarchy.
- (BOOL)
isValueSettable;
Availability: OpenStep
Returns whether this association's value can be
set. The settability depends on whether the resolved
parent binding supports value assignment and whether
the key path points to a settable property within the
binding's target object.
- (void)
setValue: (id)value
inComponent: (
GSWComponent*)component;
Availability: OpenStep
Sets the value represented by this
association within the specified
component context. This involves resolving
the parent binding name to its target object, then
using the key path to set the value on the
appropriate property of that object.
- (id)
valueInComponent: (
GSWComponent*)component;
Availability: OpenStep
Resolves and returns the value represented by this
association within the specified
component context. This involves resolving
the parent binding name to its target object, then
applying the key path to retrieve the final value.
Instance Variables for GSWBindingNameAssociation Class
@protected NSString*
_keyPath;
Availability: OpenStep
The key path for value resolution within the binding
context
Warning the underscore at
the start of the name of this instance variable
indicates that, even though it is not technically
private, it is intended for internal use
within the package, and you should not use the
variable in other code.
@protected NSString*
_parentBindingName;
Availability: OpenStep
The name of the binding in the parent component
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
_GSWBindingNameAssociation_h__
Availability: OpenStep
Specialized association class that provides
binding name resolution within component hierarchies.
GSWBindingNameAssociation extends
GSWAssociation to handle cases where binding
values need to be resolved through parent component
binding names rather than direct key paths. This
association type is particularly useful for
implementing component composition patterns
where child components need to access binding values
from their parent components. It maintains both a parent
binding name and a key path to enable flexible value
resolution strategies. Key features: - Parent
binding name tracking for hierarchical value
resolution - Key path support for nested property
access - Component-aware value resolution and
assignment - Integration with GSWeb's binding
mechanism for component composition
Up