BBjNamespace::cloneMap

Description

In BBj 3.0 and higher, this method returns a HashMap containing the same keys and values as BBjNamespace.

Syntax

Return Value

Method

java.util.HashMap

cloneMap()

Parameters

Variable

Description

name

Specifies the name of the object to retrieve.

Return Value

None.

Remarks

A HashMap contains the same name-value pairs as the BBjNamespace.

Example

namespace! = BBjAPI().getNamespace("test","test",1)
namespace!.setValue("aKey","bValue")
namespace!.setValue("bKey","bValue")
clone! = namespace!.cloneMap()
print clone!.getClass().getName()
keys! = namespace!.getKeys()
print keys!.getClass().getName()
size = keys!.size()
for i = 0 to size -1
    key$ = keys!.getItem(i)
    value$ = clone!.get(key$)
    print key$, ":",value$
next i

See Also

BBjAPI

BBjNamespace

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.