com.ibm.tws.objects.model
Class WorkstationLink

java.lang.Object
  extended bycom.ibm.tws.objects.model.WorkstationLink
All Implemented Interfaces:
java.io.Serializable, TWSLink

public class WorkstationLink
extends java.lang.Object
implements TWSLink

The many-to-many association between workstations and workstation classes is defined using this object, including a reference to a FlowTargetKey instance. Multiple instances of this object can be navigated starting from a WorkstationClass, to identify the key of all workstations that are included in the class represented by that object.

The following syntax validation constraints must be met on WorkstationLink objects:

workstationKey Must reference an existing workstation

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
WorkstationLink()
          Creates an empty WorkstationLink.
WorkstationLink(FlowTargetKey key)
          Creates a WorkstationLink, specifying the key of the referenced workstation.
WorkstationLink(Identifier id)
          Creates a WorkstationLink, specifying the identifier of the referenced workstation.
WorkstationLink(Identifier id, FlowTargetKey key)
          Creates a WorkstationLink, specifying the identifier and key of the referenced workstation.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this WorkstationLink object are equal to those of the given one.
 Identifier getId()
          Returns the identifier of the workstation referenced by this dependency.
 Identifier getWorkstationId()
          Returns the identifier of the referenced workstation.
 FlowTargetKey getWorkstationKey()
          Returns the key of the referenced workstation.
 int hashCode()
          Returns a hash code for this WorkstationLink object.
 void setWorkstationId(Identifier id)
          Sets the identifier of the referenced workstation.
 void setWorkstationKey(FlowTargetKey key)
          Sets the key of the referenced workstation.
 java.lang.String toString()
          Returns a string representation of this WorkstationLink 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

WorkstationLink

public WorkstationLink()
Creates an empty WorkstationLink.


WorkstationLink

public WorkstationLink(Identifier id)
Creates a WorkstationLink, specifying the identifier of the referenced workstation.

Parameters:
id - The identifier of the referenced workstation.

WorkstationLink

public WorkstationLink(FlowTargetKey key)
Creates a WorkstationLink, specifying the key of the referenced workstation.

Parameters:
key - The key of the referenced workstation.

WorkstationLink

public WorkstationLink(Identifier id,
                       FlowTargetKey key)
Creates a WorkstationLink, specifying the identifier and key of the referenced workstation.

Parameters:
id - The identifier of the referenced workstation.
key - The key of the referenced workstation.
Method Detail

getId

public Identifier getId()
Returns the identifier of the workstation referenced by this dependency.

Specified by:
getId in interface TWSLink
Returns:
The identifier of the workstation referenced by this dependency.

getWorkstationId

public Identifier getWorkstationId()
Returns the identifier of the referenced workstation.

Returns:
The identifier of the referenced workstation.

getWorkstationKey

public FlowTargetKey getWorkstationKey()
Returns the key of the referenced workstation.

Returns:
The key of the referenced workstation.

setWorkstationId

public void setWorkstationId(Identifier id)
Sets the identifier of the referenced workstation.

Parameters:
id - The identifier of the referenced workstation.

setWorkstationKey

public void setWorkstationKey(FlowTargetKey key)
Sets the key of the referenced workstation.

Parameters:
key - The key of the referenced workstation.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this WorkstationLink object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this WorkstationLink object.

Returns:
The object's hash code.

toString

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

Returns:
A text string including all WorkstationLink fields.


Copyright © 2005 IBM All Rights Reserved.