com.ibm.tws.objects.types
Class TWSObjectMap

java.lang.Object
  extended bycom.ibm.tws.objects.types.TWSObjectMap

public class TWSObjectMap
extends java.lang.Object

This class wraps a couple of maps where TWS objects can be stored and retrieved by identifier or name.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
TWSObjectMap()
          Creates a new TWSObjectMap.
 
Method Summary
 boolean contains(TWSObject object)
          Returns true if the map contains the specified object.
 TWSObject get(TWSObject object)
          Returns the object corresponding to the specified one in the map.
 java.util.Iterator iterator()
          Returns an iterator of all TWS objects in this map.
 void put(TWSObject object)
          Puts the specified object in the map.
 void remove(TWSObject object)
          Removes the object corresponding to the specified one from the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

TWSObjectMap

public TWSObjectMap()
Creates a new TWSObjectMap.

Method Detail

put

public void put(TWSObject object)
Puts the specified object in the map.

Parameters:
object - A TWS object to be put in the map.

get

public TWSObject get(TWSObject object)
Returns the object corresponding to the specified one in the map.

Parameters:
object - A TWS object whose identifier and name are used to retrieve an object in the map.
Returns:
The object corresponding to the specified one in the map.

remove

public void remove(TWSObject object)
Removes the object corresponding to the specified one from the map.

Parameters:
object - A TWS object whose identifier and name are used to retrieve an object in the map.

contains

public boolean contains(TWSObject object)
Returns true if the map contains the specified object.

Parameters:
object - A TWS object to be compared to those that are currently stored in the map.
Returns:
True if the map contains the specified object.

iterator

public java.util.Iterator iterator()
Returns an iterator of all TWS objects in this map.

Returns:
An iterator of Map.Entry objects, one for each object in the map.


Copyright © 2005 IBM All Rights Reserved.