Classes

GSWAction
GSWActionRequestHandler
GSWActionURL
GSWActiveImage
GSWAdaptor
GSWAjaxRequestHandler
GSWApplet
GSWApplication
GSWArcRegion
GSWAssociation
GSWBaseParser
GSWBindingNameAssociation
GSWBody
GSWBrowser
GSWBundleUnarchiverDelegate
GSWCheckBox
GSWCheckBoxList
GSWCircularRegion
GSWClientSideScript
GSWComponent
GSWComponentContent
GSWComponentDefinition
GSWComponentReference
GSWComponentRequestHandler
GSWConditional
GSWConstantValueAssociation
GSWContext
GSWCookie
GSWDeclaration
GSWDeclarationFormatException
GSWDeclarationParser
GSWDefaultAdaptor
GSWDeployedBundle
GSWDictionary
GSWDirectAction
GSWDirectActionRequestHandler
GSWDynamicElement
GSWDynamicGroup
GSWDynamicURLString
GSWElement
GSWElementID
GSWEllipseRegion
GSWEmbeddedObject
GSWFileUpload
GSWForm
GSWFrame
GSWGenericContainer
GSWGenericElement
GSWGeometricRegion
GSWHTMLBareString
GSWHTMLComment
GSWHTMLDynamicElement
GSWHTMLRawParser
GSWHTMLStaticElement
GSWHTMLStaticGroup
GSWHTMLTemplateParser
GSWHTMLURLValuedElement
GSWHTTPIO
GSWHiddenField
GSWHyperlink
GSWImage
GSWImageButton
GSWImageInfo
GSWInput
GSWInputStreamData
GSWJavaScript
GSWKeyValueAssociation
GSWLifebeatThread
GSWMailDelivery
GSWMessage
GSWNestedList
GSWParam
GSWPasswordField
GSWPngImageInfo
GSWPolygonRegion
GSWPopUpButton
GSWProcFSProcInfo
GSWProjectBundle
GSWRadioButton
GSWRadioButtonList
GSWRecording
GSWRectangularRegion
GSWRepetition
GSWRequest
GSWRequestHandler
GSWResetButton
GSWResourceManager
GSWResourceRequestHandler
GSWResourceURL
GSWResponse
GSWServerSessionStore
GSWSession
GSWSessionStore
GSWSessionTimeOut
GSWSessionTimeOutManager
GSWStaticResourceRequestHandler
GSWStatisticsStore
GSWStats
GSWString
GSWSubmitButton
GSWSwitchComponent
GSWTemplateParser
GSWTemporaryElement
GSWText
GSWTextField
GSWToggle
GSWTransactionRecord
GSWURLValuedElementData
GSWVBScript
GSWValueQualityHeaderPart
NSFooNumberFormatter
NSMutableOrderedArray
WOKeyValueUnarchiver

Protocols

<GSWActionResults>
<GSWDeclarationParserPragmaDelegate>
<GSWTemplateParserDelegate>
<WOKeyValueArchiving>

Constants

GSWDFEArrayParsingError
GSWDFEDictionaryParsingError
GSWDFEElementCreationFailed
GSWDFEEmptyKeyPath
GSWDFEMissingAliasedDeclaration
GSWDFEMissingClassNameForElement
GSWDFEMissingDeclarationForElement
GSWDFEMissingElementName
GSWDFEMissingHexStringDataEnd
GSWDFEMissingIdentifier
GSWDFEMissingPragmaDelegate
GSWDFEMissingQuotedKeyPathEnd
GSWDFEMissingQuotedStringEnd
GSWDFEMissingSeparator
GSWDFEMissingValue
GSWDFEUnexpectedBufferEnd
GSWDFEUnexpectedCharacter
GSWDFEUnknownPragmaDirective
GSWDFEWrongHexNumberFormat
GSWDFEWrongKeyPathFormat
GSWDFEWrongNumberFormat

Functions

ExceptionRaiseFn
ExceptionRaiseFn0
GSWApplicationMain
GSWApplicationSetDebugSetOption
GSWAssignAndRemoveAssociation
GSWContext_appendElementIDComponent
GSWContext_appendZeroElementIDComponent
GSWContext_component
GSWContext_contextAndElementID
GSWContext_deleteAllElementIDComponents
GSWContext_deleteLastElementIDComponent
GSWContext_elementID
GSWContext_incrementLastElementIDComponent
GSWContext_isParentSenderIDSearchOver
GSWContext_isSenderIDSearchOver
GSWContext_senderID
GSWDebugMethodMsg
GSWDynamicElement_evaluateValueInContext
GSWGetDefaultDocRoot
GSWInitializeAllMisc
GSWIntNumber
GSWIntToNSString
GSWIntToString
GSWIsBoolNumberNo
GSWIsBoolNumberYes
GSWJoinedStrings
GSWLogAssertGoodFn
GSWMessage_appendContentAsciiString
GSWMessage_appendContentBytes
GSWMessage_appendContentCharacter
GSWMessage_appendContentData
GSWMessage_appendContentHTMLAttributeValue
GSWMessage_appendContentHTMLConvertString
GSWMessage_appendContentHTMLEntitiesConvertString
GSWMessage_appendContentHTMLString
GSWMessage_appendContentString
GSWMessage_appendDebugCommentContentString
GSWMessage_content
GSWMessage_contentString
GSWMessage_replaceContentData
GSWMessage_stringByConvertingToHTML
GSWMessage_stringByConvertingToHTMLEntities
GSWMessage_stringByEscapingHTMLAttributeValue
GSWMessage_stringByEscapingHTMLString
GSWNumber_No
GSWNumber_Yes
GSWResponse_appendTagAttributeValueEscapingHTMLAttributeValue
GSWTime_format
GSWTime_msecPart
GSWTime_now
GSWTime_secPart
GSWTime_usecPart
GSWeb_appendStringWithImpPtr
GSWeb_objectAtIndexWithImpPtr
GetGSWContextIMPs
GetGSWDeclarationParserIMPS
GetGSWElementIDIMPs
GetGSWMessageIMPs
GetGSWResponseIMPs
InitializeGSWElementIDSELs
NSStringHTML_Initialize
NSStringWithObject
NSTimeIntervalFromTimeVal
NSTimeIntervalSleep
SBIsEqual
SBIsValueEqual
SBIsValueIsIn
WOApplicationMain
_ParserDebugLogBuffer
_parserIsBlankChar
_parserIsCommentTagType
_parserIsDigit
_parserIsDynamicOrCommentTagType
_parserIsDynamicTagType
_parserIsEndOfLineChar
_parserIsHexDigit
baseStringByConvertingFromHTML
baseStringByConvertingToHTML
boolValueFor
boolValueWithDefaultFor
isHeaderKeysEqual
loggedLockBeforeDateFromFunctionInFileInLine
loggedUnlockFromFunctionInFileInLine

Macros

GSWResponse_content
ParserDebugLogBuffer
_GSWAssociation_h__
_GSWBaseParser_h__
_GSWBindingNameAssociation_h__
_GSWBody_h__

Types

BYTE
GSWHTMLRawParserTagType
GSWIMP_BOOL
GSWIMP_DOUBLE
GSWIMP_FLOAT
GSWIMP_INT
GSWIMP_LONG
GSWIMP_SHORT
GSWProcState
GSWTemplateParserType
GSWTime
NSNumFmtType
UINT
UINT16
UINT32
UINT8
WOMarkupType
struct _GSWContextIMPs
struct _GSWDeclarationParserIMPs
struct _GSWElementIDIMPs
struct _GSWElementIDPart
struct _GSWHTMLConvertingStruct
struct _GSWMessageIMPs
struct _GSWResponseIMPs

Variables

ElementsMap_attributeElement
ElementsMap_dynamicElement
ElementsMap_gswebElement
ElementsMap_htmlBareString
GSASK_Class
GSASK_Field
GSASK_FieldTitle
GSASK_FieldValidate
GSASK_Language
GSFoundMarker
GSFrameworkPSuffix
GSFrameworkSuffix
GSLanguagePSuffix
GSLanguageSuffix
GSNotFoundMarker
GSWAPIPSuffix
GSWAPISuffix
GSWAjaxRequestHandlerKey
GSWApp
GSWApplicationPSuffix
GSWApplicationSuffix
GSWArchivePSuffix
GSWArchiveSuffix
GSWClassName_Application
GSWClassName_Component
GSWClassName_DefaultAdaptor
GSWClassName_DefaultContext
GSWClassName_DefaultRecording
GSWClassName_DefaultRequest
GSWClassName_DefaultResponse
GSWClassName_ResourceManager
GSWClassName_ServerSessionStore
GSWClassName_Session
GSWClassName_StatisticsStore
GSWComponentDeclarationsPSuffix
GSWComponentDeclarationsSuffix
GSWComponentName__Key
GSWComponentRequestHandlerKey
GSWComponentTemplatePSuffix
GSWComponentTemplateSuffix
GSWDirectActionRequestHandlerKey
GSWExceptionPageName
GSWFormValue_RemoteInvocationPost
GSWFramework_all
GSWFramework_app
GSWFramework_extensions
GSWHTTPHeader_AcceptEncoding
GSWHTTPHeader_AcceptLanguage
GSWHTTPHeader_AdaptorStats
GSWHTTPHeader_AdaptorVersion
GSWHTTPHeader_AnnotationServer
GSWHTTPHeader_ApplicationName
GSWHTTPHeader_AuthPass
GSWHTTPHeader_AuthType
GSWHTTPHeader_ContentDisposition
GSWHTTPHeader_ContentEncoding
GSWHTTPHeader_ContentLength
GSWHTTPHeader_ContentType
GSWHTTPHeader_Cookie
GSWHTTPHeader_CookieStupidIIS
GSWHTTPHeader_DocumentRoot
GSWHTTPHeader_FormURLEncoded
GSWHTTPHeader_GatewayInterface
GSWHTTPHeader_LoadAverage
GSWHTTPHeader_Location
GSWHTTPHeader_Method
GSWHTTPHeader_MethodGet
GSWHTTPHeader_MethodPost
GSWHTTPHeader_MimeType_TextPlain
GSWHTTPHeader_MultipartFormData
GSWHTTPHeader_Protocol
GSWHTTPHeader_ProtocolNum
GSWHTTPHeader_QueryString
GSWHTTPHeader_Recording
GSWHTTPHeader_RecordingApplicationNumber
GSWHTTPHeader_RecordingIDsCookie
GSWHTTPHeader_RecordingIDsURL
GSWHTTPHeader_RecordingSessionID
GSWHTTPHeader_Referer
GSWHTTPHeader_RefuseSessions
GSWHTTPHeader_RefusingRedirection
GSWHTTPHeader_RemoteAddress
GSWHTTPHeader_RemoteHost
GSWHTTPHeader_RemoteIdent
GSWHTTPHeader_RemoteUser
GSWHTTPHeader_RequestMethod
GSWHTTPHeader_RequestScheme
GSWHTTPHeader_Response_HeaderLineEnd
GSWHTTPHeader_Response_OK
GSWHTTPHeader_ServerName
GSWHTTPHeader_ServerPort
GSWHTTPHeader_ServerSoftware
GSWHTTPHeader_SetCookie
GSWHTTPHeader_UserAgent
GSWKey_ContextID
GSWKey_Data
GSWKey_ElementID
GSWKey_InstanceID
GSWKey_IsmapCoords
GSWKey_PageName
GSWKey_QuestionMarkSessionID
GSWKey_SessionID
GSWKey_SubmitAction
GSWLibraryPSuffix
GSWLibrarySuffix
GSWMainPageName
GSWMonitorServiceName
GSWNotification__SessionDidTimeOutNotification
GSWOPTValue_AjaxRequestHanderKey
GSWOPTValue_ComponentRequestHandlerKey
GSWOPTValue_DefaultTemplateParser_ANTLR
GSWOPTValue_DefaultTemplateParser_RawHTML
GSWOPTValue_DefaultTemplateParser_XML
GSWOPTValue_DefaultTemplateParser_XMLHTML
GSWOPTValue_DefaultTemplateParser_XMLHTMLNoOmittedTags
GSWOPTValue_DirectActionRequestHandlerKey
GSWOPTValue_PingActionRequestHandlerKey
GSWOPTValue_ResourceRequestHandlerKey
GSWOPTValue_SessionStoreClassName
GSWOPTValue_StaticResourceRequestHandlerKey
GSWOPTValue_StreamActionRequestHandlerKey
GSWOPT_Adaptor
GSWOPT_AdaptorHost
GSWOPT_AdditionalAdaptors
GSWOPT_AjaxRequestHandlerKey
GSWOPT_AllowsCacheControlHeader
GSWOPT_ApplicationBaseURL
GSWOPT_AutoOpenInBrowser
GSWOPT_CGIAdaptorURL
GSWOPT_CachingEnabled
GSWOPT_ComponentRequestHandlerKey
GSWOPT_Context
GSWOPT_DebugSetConfigFilePath
GSWOPT_DebuggingEnabled
GSWOPT_DefaultTemplateParser
GSWOPT_DefaultUndoStackLimit
GSWOPT_DirectActionRequestHandlerKey
GSWOPT_DirectConnectEnabled
GSWOPT_DisplayExceptionPages
GSWOPT_FrameworksBaseURL
GSWOPT_Host
GSWOPT_IncludeCommentsInResponse
GSWOPT_LifebeatDestinationHost
GSWOPT_LifebeatDestinationPort
GSWOPT_LifebeatEnabled
GSWOPT_LifebeatInterval
GSWOPT_ListenQueueSize
GSWOPT_LoadFrameworks
GSWOPT_LockDefaultEditingContext
GSWOPT_MonitorEnabled
GSWOPT_MonitorHost
GSWOPT_MultiThreadEnabled
GSWOPT_OutputPath
GSWOPT_PingActionRequestHandlerKey
GSWOPT_Port
GSWOPT_ProjectSearchPath
GSWOPT_RecordingClassName
GSWOPT_RecordingPath
GSWOPT_Request
GSWOPT_ResourceManagerClassName
GSWOPT_ResourceRequestHandlerKey
GSWOPT_Response
GSWOPT_SMTPHost
GSWOPT_SessionStoreClassName
GSWOPT_SessionTimeOut
GSWOPT_StaticResourceRequestHandlerKey
GSWOPT_StatisticsStoreClassName
GSWOPT_StatusDebuggingEnabled
GSWOPT_StatusLoggingEnabled
GSWOPT_StreamActionRequestHandlerKey
GSWOPT_WorkerThreadCount
GSWOPT_WorkerThreadCountMax
GSWOPT_WorkerThreadCountMin
GSWPagePSuffix
GSWPageRestorationErrorPageName
GSWPageSuffix
GSWPingActionRequestHandlerKey
GSWProtocol_HTTP
GSWProtocol_HTTPS
GSWResourceRequestHandlerKey
GSWScriptPSuffix
GSWScriptSuffix
GSWSessionCreationErrorPageName
GSWSessionRestorationErrorPageName
GSWStaticResourceRequestHandlerKey
GSWStringTableArrayPSuffix
GSWStringTableArraySuffix
GSWStringTablePSuffix
GSWStringTableSuffix
GSWTag_Name
GSWThreadKey_ComponentDefinition
GSWThreadKey_Context
GSWThreadKey_DefaultAdaptorThread
GSWURLPrefix
GSWebNamingConv
NSTNO
NSTYES
WOStrictFlag
actionClass__Key
actionNo__Key
actionYes__Key
action__Key
align__Key
appendElementIDComponentSEL
appendZeroElementIDComponentSEL
archiveNames__Key
archive__Key
associationClass__Key
border__Key
checked__Key
cidKey__Key
cidStore__Key
codeBase__Key
code__Key
componentDesign__Key
componentName__Key
conditionValue__Key
condition__Key
convertHTMLEntities__Key
convertHTML__Key
count__Key
data__Key
dateFormat__AltKey
dateFormat__Key
deleteAllElementIDComponentsSEL
deleteLastElementIDComponentSEL
directActionName__Key
disabled__Key
displayDisabled__Key
displayString__Key
elementIDStringSEL
elementID__Key
elementName__Key
enabled__Key
escapeHTML__Key
evaluateConditionInContextSEL
filePath__Key
file__Key
filename__Key
formValue__Key
formValues__Key
formatter__Key
fragmentIdentifier__Key
framework__Key
globalApplicationClassName
globalMime
gswAppendStringSEL
gswObjectAtIndexSEL
handleValidationException__Key
height__Key
hideInComment__Key
href__Key
hspace__Key
htmlConvertAttributeValueStruct
htmlConvertHTMLString
htmlConvertStruct
iBlock
identifier__Key
imageMapFileName__Key
imageMapRegions__Key
imageMapString__Key
incrementLastElementIDComponentSEL
index__Key
invokeAction__Key
isDisplayStringBefore__Key
isOrdered__Key
isParentSearchOverForSenderIDSEL
isSearchOverForSenderIDSEL
item__Key
key__Key
language__Key
level__Key
list__Key
method__Key
mimeType__Key
multipleSubmit__Key
multiple__Key
name__Key
negate__Key
noSelectionString__Key
numberFormat__AltKey
numberFormat__Key
object__Key
omitElement__Key
omitTags__Key
otherTagString__Key
pageDesign__Key
pageName__Key
pageSetVar__Prefix__Key
pageSetVars__Key
pathQueryDictionary__Key
post__Key
prefix__Key
queryDictionary__Key
redirectURL__Key
scriptFile__Key
scriptSource__Key
scriptString__Key
secure__Key
selectedValue__Key
selectedValues__Key
selectionValue__Key
selectionValues__Key
selection__Key
selections__Key
size__Key
src__Key
startIndex__Key
stopIndex__Key
string__Key
sublist__Key
suffix__Key
target__Key
type__Key
urlPrefix__Key
useDecimalNumber__Key
valueWhenEmpty__Key
value__Key
vspace__Key
width__Key
x__Key
y__Key

Up

GSWeb: Class GSWAssociation

Authors

Manuel Guesdon (mguesdon@orange-concept.com)

Date: Generated at 2025-12-01

Copyright: (C) 1999-2004 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the GSWAssociation class
  2. Software documentation for the NSArray(GSWAssociation) category
  3. Software documentation for the NSDictionary(GSWAssociation) category
  4. GSWAssociation macros

Software documentation for the GSWAssociation class

GSWAssociation : NSObject

Declared in:
WebObjects/GSWAssociation.h
Conforms to:
NSCopying
Availability: OpenStep

The main GSWAssociation class that handles value binding and resolution for GSWeb components. This class serves as the foundation for all binding operations in the GSWeb framework, providing mechanisms to get and set values through key paths, handle constant values, and manage debugging and logging functionality.

GSWAssociation declares 5 Instance Variables

Method summary


addLogHandlerClasse: 

+ (void) addLogHandlerClasse: (Class)class;
Availability: OpenStep

Adds a class to the list of log handler classes. Log handlers can monitor and process association operations for debugging and analysis purposes.

associationFromString: 

+ (GSWAssociation*) associationFromString: (NSString*)string;
Availability: OpenStep

Creates and returns a new association from a string representation. The string is parsed to determine whether it represents a constant value (quoted strings) or a key path, with appropriate association type created.

associationWithKeyPath: 

+ (GSWAssociation*) associationWithKeyPath: (NSString*)keyPath;
Availability: OpenStep

Creates and returns a new association representing the specified key path. The association will resolve the key path within component contexts and may be settable depending on the key path structure.

associationWithValue: 

+ (GSWAssociation*) associationWithValue: (id)value;
Availability: OpenStep

Creates and returns a new association representing the specified constant value. The association will always return this value regardless of component context and will not be settable.

removeLogHandlerClasse: 

+ (void) removeLogHandlerClasse: (Class)class;
Availability: OpenStep

Removes a class from the list of log handler classes, stopping its participation in association operation logging.

setClasse: forHandler: 

+ (void) setClasse: (Class)class forHandler: (NSString*)handler;
Availability: OpenStep

Sets the association class to use for a specific handler type. This allows customization of association behavior for different types of bindings or value sources.

setValue: inComponent: forKeyPath: 

+ (void) setValue: (id)value inComponent: (GSWComponent*)component forKeyPath: (NSString*)keyPath;
Availability: OpenStep

Class method that directly sets a value in a component using the specified key path. This is a convenience method that performs key path assignment without requiring an association object.

valueInComponent: forKeyPath: 

+ (id) valueInComponent: (GSWComponent*)component forKeyPath: (NSString*)keyPath;
Availability: OpenStep

Class method that directly retrieves a value from a component using the specified key path. This is a convenience method that performs key path resolution without requiring an association object.

_logPullValue: inComponent: 

- (void) _logPullValue: (id)value inComponent: (GSWComponent*)component;
Availability: OpenStep

Internal method to log value retrieval operations. Records when values are pulled from this association within a component context, useful for debugging and performance analysis.
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.

_logPushValue: inComponent: 

- (void) _logPushValue: (id)value inComponent: (GSWComponent*)component;
Availability: OpenStep

Internal method to log value assignment operations. Records when values are pushed to this association within a component context, useful for debugging and performance analysis.
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.

bindingInComponent: 

- (NSString*) bindingInComponent: (GSWComponent*)component;
Availability: OpenStep

Returns the binding string representation as it appears in the.gswd file. This provides the original declaration syntax for this association, useful for debugging and development tools.

bindingName 

- (NSString*) bindingName;
Availability: OpenStep

Returns the name of the binding attribute that this association represents within a component declaration. For example, "value" in a GSWString's value binding.

boolValueInComponent: 

- (BOOL) boolValueInComponent: (GSWComponent*)component;
Availability: OpenStep

Returns the boolean value represented by this association within the context of the specified component. Non-boolean values are converted to boolean using standard Objective-C truthiness rules.

debugDescription 

- (NSString*) debugDescription;
Availability: OpenStep

Returns a detailed debug description of this association, including its type, key path or value, and current configuration. More verbose than the standard description method.

declarationName 

- (NSString*) declarationName;
Availability: OpenStep

Returns the name of the declaration that contains this association. This is typically the identifier used in the.gswd file for the dynamic element containing this binding.

declarationType 

- (NSString*) declarationType;
Availability: OpenStep

Returns the type of the declaration that contains this association. This corresponds to the element class name (e.g., "GSWString", "GSWConditional") in the component declaration.

description 

- (NSString*) description;
Availability: OpenStep

Returns a string description of this association, typically showing the key path or constant value it represents. Used for debugging and logging purposes.

isImplementedForComponent: 

- (BOOL) isImplementedForComponent: (NSObject*)component;
Availability: OpenStep

Returns whether this association is implemented for the specified component. This checks if the association's key path can be resolved within the component's context, indicating whether the binding will function correctly.

isValueConstant 

- (BOOL) isValueConstant;
Availability: OpenStep

Returns whether this association represents a constant value rather than a dynamic key path. Constant associations always return the same value regardless of component state.

isValueConstantInComponent: 

- (BOOL) isValueConstantInComponent: (GSWComponent*)comp;
Availability: OpenStep

Returns whether this association represents a constant value within the context of the specified component. This provides component-specific constant checking beyond the general isValueConstant method.

isValueSettable 

- (BOOL) isValueSettable;
Availability: OpenStep

Returns whether this association represents a settable key path. Only key path associations (not constant values) are settable, and only if the key path resolves to a settable property.

isValueSettableInComponent: 

- (BOOL) isValueSettableInComponent: (GSWComponent*)comp;
Availability: OpenStep

Returns whether this association's value is settable within the context of the specified component. This provides component-specific settability checking beyond the general isValueSettable method.

keyPath 

- (NSString*) keyPath;
Availability: OpenStep

Returns the key path string that this association represents. For constant value associations, this may return nil or an internal representation. For key path associations, returns the actual key path used for value resolution.

logSynchronizeComponentToParentForValue: inComponent: 

- (void) logSynchronizeComponentToParentForValue: (id)value inComponent: (GSWComponent*)component;
Availability: OpenStep

Logs synchronization from component to parent, recording the value being synchronized and the component context. Used for debugging bidirectional binding operations.

logSynchronizeParentToComponentForValue: inComponent: 

- (void) logSynchronizeParentToComponentForValue: (id)value inComponent: (GSWComponent*)component;
Availability: OpenStep

Logs synchronization from parent to component, recording the value being synchronized and the component context. Used for debugging bidirectional binding operations.

negate 

- (BOOL) negate;
Availability: OpenStep

Returns whether this association negates boolean results before returning them. This is a GSWeb extension feature that allows boolean key paths to be negated by prefixing them with "!" in the declaration.

setDebugEnabledForBinding: declarationName: declarationType: 

- (void) setDebugEnabledForBinding: (NSString*)bindingName declarationName: (NSString*)declarationName declarationType: (NSString*)declarationType;
Availability: OpenStep

Enables debug logging for this association when used with the specified binding name, declaration name, and declaration type. When enabled, the association will log detailed information about its operations.

setNegate: 

- (void) setNegate: (BOOL)yn;
Availability: OpenStep

Sets whether this association should negate boolean results before returning them. When enabled, boolean values returned by valueInComponent: and boolValueInComponent: will be logically inverted.

setValue: inComponent: 

- (void) setValue: (id)value inComponent: (GSWComponent*)component;
Availability: OpenStep

Sets the value represented by this association within the context of the specified component. This method is only effective for settable associations (those representing key paths rather than constant values).



Instance Variables for GSWAssociation Class

_bindingName

@protected NSString* _bindingName;
Availability: OpenStep

The name of the binding attribute
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.

_debugEnabled

@protected BOOL _debugEnabled;
Availability: OpenStep

Enable debug logging for this association
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.

_declarationName

@protected NSString* _declarationName;
Availability: OpenStep

The name of the declaration containing this association
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.

_declarationType

@protected NSString* _declarationType;
Availability: OpenStep

The type of the declaration (element class name)
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.

_negate

@protected BOOL _negate;
Availability: OpenStep

Whether to negate boolean results (GSWeb extension)
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.




Software documentation for the NSArray(GSWAssociation) category

NSArray(GSWAssociation)

Declared in:
WebObjects/GSWAssociation.h
Availability: OpenStep

Category extending NSArray with association-related functionality. This category provides methods for working with arrays that contain string representations of associations, enabling conversion from parsed declarations to executable association objects.

Method summary


arrayByReplacingStringsWithAssociations 

- (NSArray*) arrayByReplacingStringsWithAssociations;
Availability: OpenStep

Returns a new array where string elements in this array are replaced with corresponding association objects. This is typically used during parsing to convert string declarations into executable associations for array-based bindings.

Software documentation for the NSDictionary(GSWAssociation) category

NSDictionary(GSWAssociation)

Declared in:
WebObjects/GSWAssociation.h
Availability: OpenStep

Category extending NSDictionary with association-related functionality. This category provides methods for working with dictionaries that contain associations as values, enabling batch operations and debugging support for association collections commonly used in component bindings.

Method summary


associationsSetDebugEnabled 

- (void) associationsSetDebugEnabled;
Availability: OpenStep

Enables debug logging for all associations contained as values in this dictionary. This is a convenience method for batch enabling debug mode on multiple associations simultaneously.

associationsSetValuesFromObject: inObject: 

- (void) associationsSetValuesFromObject: (id)from inObject: (id)to;
Availability: OpenStep

Transfers values from one object to another using the associations in this dictionary as the transfer mechanism. Each association key-value pair defines how values are copied between objects.

associationsWithoutPrefix: removeFrom: 

- (NSDictionary*) associationsWithoutPrefix: (NSString*)prefix removeFrom: (NSMutableDictionary*)removeFrom;
Availability: OpenStep

Returns a new dictionary containing associations from this dictionary that do not have keys matching the specified prefix. Associations with matching prefixes are removed from the provided mutable dictionary if specified.

dictionaryByReplacingStringsWithAssociations 

- (NSDictionary*) dictionaryByReplacingStringsWithAssociations;
Availability: OpenStep

Returns a new dictionary where string values in this dictionary are replaced with corresponding association objects. This is typically used during parsing to convert string declarations into executable associations.

isAssociationDebugEnabledInComponent: 

- (BOOL) isAssociationDebugEnabledInComponent: (GSWComponent*)component;
Availability: OpenStep

Returns whether debug logging is enabled for associations in this dictionary within the context of the specified component. Checks the debug state of association values contained in the dictionary.

GSWAssociation macros

_GSWAssociation_h__

_GSWAssociation_h__
Availability: OpenStep

The GSWAssociation class represents values of GSWeb attributes specified in declaration files (.gswd). Association objects serve as binding mechanisms between component attributes and their values, handling both constant values and dynamic key paths that resolve to component properties or methods. GSWAssociation objects get or set values according to value keys. For example: MyString1: GSWString {value = "aLabel"; // Constant string value}; MyString2: GSWString {value = label; // Dynamic key path to component property}; MyString3: GSWString { value = myMember.label; // Nested key path through component hierarchy}; At runtime, the GSWeb parser scans HTML templates (.html) and their declarations (.gswd) to create dynamic element objects. The association handles value resolution: - Constant values (quoted strings) are returned as-is - Simple key paths resolve through the component's valueForKey: mechanism - Nested key paths traverse object hierarchies using key-value coding Special Features: - Negation: Prefix key path with "!" to negate boolean results - Debug logging: Comprehensive logging support for binding operations - Type flexibility: Handles various value types with appropriate conversions


Up