Product SiteDocumentation Site

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

Note

The Directory class also has available class methods that metaclass, the Class class (Section 5.1.2, “The Class Class”), defines. It also inherits methods from the Map (Section 5.3.3, “The MapCollection Class”) class, although there are not currently any methods defined in that class.
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

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun 
Methods inherited from the Collection class (Section 5.3.2, “The Collection Class”).
[]equivalentput
[]=hasIndexsubset
allIndexeshasItemsupplier
allItemsindexunion
atintersectionxor
differenceitems 
disjointmakeArray 
Methods inherited from the MapCollection (Section 5.3.3, “The MapCollection Class”).
putAll