com.ptc.windchill.esi.tgt
Class ESITargetUtility.TargetCounter

java.lang.Object
  extended bycom.ptc.windchill.esi.tgt.ESITargetUtility.TargetCounter
Enclosing class:
ESITargetUtility

private class ESITargetUtility.TargetCounter
extends Object

A private class which determines the number of persistables associated with an ESITarget.


Field Summary
private  ESITarget tgt
          The ESITarget of interest.
private  Hashtable ufids
          A collection of persistable objects.
 
Constructor Summary
(package private) ESITargetUtility.TargetCounter(ESITargetAssociation eta, int size)
          Only constructor for the class.
 
Method Summary
(package private)  void count(ESITargetAssociation eta)
          Adds the argument to the ufids collection.
(package private)  int getCount()
          Returns the count of the entries in the ufids attribute.
(package private)  ESITarget getTarget()
          getter for the tgt attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tgt

private ESITarget tgt
The ESITarget of interest.


ufids

private Hashtable ufids
A collection of persistable objects.

Constructor Detail

ESITargetUtility.TargetCounter

ESITargetUtility.TargetCounter(ESITargetAssociation eta,
                               int size)
Only constructor for the class. Insures that the object is ready to process. Creates the ufids collection, adds the eta argument to the collection, and sets the tgt attribute to the eta argument's contained ESITarget object.

Parameters:
eta - The ESITargetAssociation that contains a target.
size - declares maximum size of the ufids collection
Method Detail

getCount

int getCount()
Returns the count of the entries in the ufids attribute.

Returns:
int

count

void count(ESITargetAssociation eta)
Adds the argument to the ufids collection.

Parameters:
eta - The ESITargetAssociation to process.

getTarget

ESITarget getTarget()
getter for the tgt attribute.

Returns:
ESITarget