com.ibm.tws.objects.plan
Class WorkstationInPlanKey

java.lang.Object
  extended bycom.ibm.tws.objects.plan.WorkstationInPlanKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class WorkstationInPlanKey
extends java.lang.Object
implements TWSKey

This object represents a workstation in plan external key, including fields used to identify a workstation in TWS external interfaces. Since two workstations cannot have the same name, the only attribute of this class, which is called name, uniquely identifies a workstation.

See Also:
WorkstationInPlan, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright
 
Constructor Summary
WorkstationInPlanKey()
          Empty Constructor for WorkstationInPlanKey
WorkstationInPlanKey(java.lang.String wkName)
          Consructor for WorkstationInPlanKey
 
Method Summary
 boolean equals(java.lang.Object object)
          Equality method.
 java.lang.String getName()
          Gets the name of the workstation
 int hashCode()
          HashCode method.
 void setName(java.lang.String string)
          Set the name of the workstation.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright

Constructor Detail

WorkstationInPlanKey

public WorkstationInPlanKey()
Empty Constructor for WorkstationInPlanKey


WorkstationInPlanKey

public WorkstationInPlanKey(java.lang.String wkName)
Consructor for WorkstationInPlanKey

Parameters:
wkName - The workstation name.
Method Detail

getName

public java.lang.String getName()
Gets the name of the workstation

Specified by:
getName in interface TWSKey
Returns:
String

setName

public void setName(java.lang.String string)
Set the name of the workstation.

Parameters:
string - The name of the workstation.

equals

public boolean equals(java.lang.Object object)
Equality method.

Parameters:
object - The object to be compared.
Returns:
True of object is equal of this one.

hashCode

public int hashCode()
HashCode method. Returns an has of this object

Returns:
an int representing the hash of this object.

toString

public java.lang.String toString()
Returns a String representation of this object.

Returns:
a String representing this object.


Copyright © 2005 IBM All Rights Reserved.