BBjAPI::getExistingNamespaceNames

Description

In BBj 17.00 and higher, this method returns a BBjVector of existing BBjNamespace names (omitting the global namespace).

Syntax

Return Value

Method

BBjVector

getExistingNamespaceNames()

Parameters

None.

Return Value

Returns a BBjVector of existing BBjNamespace names (omitting the global namespace).

Example

rem ' BBjAPI::getExistingNamespaceNames

vector! = bbjapi().getExistingNamespaceNames()
size = vector!.size()
if (size = 1) then
    print "There is",size," existing namespace name."
else
    print "There are",size," existing namespace names."
endif
if (size) then
    for ns = 0 to size - 1
        ns$ = vector!.get(ns)
        ns! = bbjapi().getExistingNamespace(ns$)
        keys! = ns!.getKeys()
        keys = keys!.size()
        print "Namespace ",ns$," contains",keys,
        print iff(keys = 1," key."," keys.")
        if (keys) then
            for key = 0 to keys - 1
                key$ = keys!.get(key)
                value! = ns!.getValue(key$)
                print key$," = ",value!
            next key
        endif
    next ns
endif

See Also

BBjAPI

BBjAPI::getExistingNamespace

BBjNamespace

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