All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cmu.owl.so.nameservice.NamedCollectionImpl

edu.cmu.owl.so.nameservice.NamedCollectionImpl

public class NamedCollectionImpl
implements NamedCollection
this class implements a Named collection of objects


Constructor Index

 o NamedCollectionImpl()
this is the basic constructor

Method Index

 o contains(Nameable)
this method returns true if the argument is an element in the collection
 o containsKey(Object)
this method returns true if the argument is a key in the collection
 o elements()
this method returns an Enumeration of all the elements in the collection
 o get(Object)
this method returns an element of the collection given a key
 o isAlive()
this method is used to ping the object to make sure it still exists
 o keys()
this method returns an enumeration of all the keys in the collection
 o put(Object, Nameable)
this method puts a new element into the collection along with its associated key
 o remove(Object)
this method removes an element from the collection given the key and it also returns a reference to the element which was removed

Constructors

 o NamedCollectionImpl
 public NamedCollectionImpl() throws RemoteException
this is the basic constructor

Methods

 o isAlive
 public boolean isAlive() throws RemoteException
this method is used to ping the object to make sure it still exists

 o elements
 public Enumeration elements() throws RemoteException
this method returns an Enumeration of all the elements in the collection

 o keys
 public Enumeration keys() throws RemoteException
this method returns an enumeration of all the keys in the collection

 o contains
 public boolean contains(Nameable element) throws RemoteException
this method returns true if the argument is an element in the collection

 o containsKey
 public boolean containsKey(Object key) throws RemoteException
this method returns true if the argument is a key in the collection

 o get
 public Nameable get(Object key) throws RemoteException
this method returns an element of the collection given a key

 o put
 public void put(Object key,
                 Nameable target) throws RemoteException
this method puts a new element into the collection along with its associated key

 o remove
 public Nameable remove(Object key) throws RemoteException
this method removes an element from the collection given the key and it also returns a reference to the element which was removed


All Packages  Class Hierarchy  This Package  Previous  Next  Index