The CreateAccessor and CreateIterator methods in keyed collections

Date:16 January 2004
Product/Release:Visual LANSA
Abstract:Descriptions of the CreateAccessor and CreateIterator methods in Keyed collections
Submitted By:LANSA Technical Support
Last Review:November 2010

These methods are what we call "pattern" methods that enable more "user friendly" RDMLX commands to work.

The CreateAccessor method is used by the DEFINE_PTY ..... Get(*Collection ....) to enable simple access to a collection THAT IS READ ONLY. The property lets a component class simply publish access to a collection but does not let the user of the collection modify the collection.

The CreateIterator method is used by the FOR/END_FOR commands to create a component that will be driven by the FOR command to iterate over the items in a collection.

Both of these methods exist to support the higher level operations.