bsh

Class CollectionManager


public class CollectionManager
extends java.lang.Object

The default CollectionManager (which remains Java 1.1 compatible) supports iteration over objects of type: Enumeration, Vector, String, StringBuffer and array. The dynamically loaded CollectionManagerImpl supports additional types when it is present.

See Also:
BshIterable.java

Nested Class Summary

static class
CollectionManager.BasicBshIterator
An implementation that works with JDK 1.1

Method Summary

BshIterator
getBshIterator(Object obj)
static CollectionManager
getCollectionManager()
Object
getFromMap(Object map, Object key)
boolean
isBshIterable(Object obj)
boolean
isMap(Object obj)
Object
putInMap(Object map, Object key, Object value)

Method Details

getBshIterator

public BshIterator getBshIterator(Object obj)
            throws IllegalArgumentException


getCollectionManager

public static CollectionManager getCollectionManager()


getFromMap

public Object getFromMap(Object map,
                         Object key)


isBshIterable

public boolean isBshIterable(Object obj)


isMap

public boolean isMap(Object obj)


putInMap

public Object putInMap(Object map,
                       Object key,
                       Object value)


B) 2000 pat@pat.net :-)