5.3.9. The Directory Class
A Directory is a MapCollection using unique character string indexes. The items of the collection can be any valid Rexx object.
Table 5.19. ooRexx Directory Class
Object
|
↓
|
Directory
|
+ MapCollection
|
new
|
allIndexes
allItems
at, []
empty
entry
hasEntry
hasIndex
hasItem
index
isEmpty
items
|
makeArray
put, []=
remove
removeItem
setEntry
setMethod
supplier
unknown
unSetMethod
xor
|
In addition to the standard put() and at() methods defined for Collections, Directories provide access to objects using methods. For example:
mydir = .directory~new
mydir~name = "Mike" -- same as mydir~put("Mike", "NAME")
say mydir~name -- same as say mydir['NAME']
5.3.9.1. Inherited Methods