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
-
NamedCollectionImpl()
- this is the basic constructor
-
contains(Nameable)
- this method returns true if the argument is an element in the collection
-
containsKey(Object)
- this method returns true if the argument is a key in the collection
-
elements()
- this method returns an Enumeration of all the elements in the collection
-
get(Object)
- this method returns an element of the collection given a key
-
isAlive()
- this method is used to ping the object to make sure it still exists
-
keys()
- this method returns an enumeration of all the keys in the collection
-
put(Object, Nameable)
- this method puts a new element into the collection along with its
associated key
-
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
NamedCollectionImpl
public NamedCollectionImpl() throws RemoteException
- this is the basic constructor
isAlive
public boolean isAlive() throws RemoteException
- this method is used to ping the object to make sure it still exists
elements
public Enumeration elements() throws RemoteException
- this method returns an Enumeration of all the elements in the collection
keys
public Enumeration keys() throws RemoteException
- this method returns an enumeration of all the keys in the collection
contains
public boolean contains(Nameable element) throws RemoteException
- this method returns true if the argument is an element in the collection
containsKey
public boolean containsKey(Object key) throws RemoteException
- this method returns true if the argument is a key in the collection
get
public Nameable get(Object key) throws RemoteException
- this method returns an element of the collection given a key
put
public void put(Object key,
Nameable target) throws RemoteException
- this method puts a new element into the collection along with its
associated key
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