com.ibm.tws.objects.model
Class WorkstationClass

java.lang.Object
  extended bycom.ibm.tws.objects.model.FlowTarget
      extended bycom.ibm.tws.objects.model.WorkstationClass
All Implemented Interfaces:
java.io.Serializable, TWSObject

public class WorkstationClass
extends FlowTarget

This subclass of FlowTarget represents a workstation class. It has only a list if WorkstationLink objects, hosting associations with the workstations of the class. WorkstationClass wraps a WorkstationClassHeader through means of FlowTarget, and WorkstationClassHeader wraps a FlowTargetKey through FlowTargetHeader.

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

allWorkstationsIncluded Default value is true
workstationLinks A list of WorkstationLink objects
Must be empty if allWorkstationsIncluded is true
See WorkstationLink for other constraints

About workstation links, notice that if you add twice the same link to the list, only the last instance added to the list is stored when creating or modifying the workstation class. In other words, if multiple workstation links reference the same workstation, only the last one is saved.

See Also:
FlowTarget, WorkstationLink, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
WorkstationClass()
          Creates an empty WorkstationClass.
WorkstationClass(WorkstationClassHeader workstationClassHeader)
          Creates a WorkstationClass with the specified header.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this WorkstationClass object are equal to those of the given one.
 boolean getAllWorkstationsIncluded()
          Returns the workstation class allWorkstationsIncluded property.
 java.util.List getWorkstationLinks()
          Returns a reference to the list of workstation links for this workstation class.
 int hashCode()
          Returns a hash code for this WorkstationClass object.
 void setAllWorkstationsIncluded(boolean value)
          Sets the workstation class allWorkstationsIncluded property.
 java.lang.String toString()
          Returns a string representation of this WorkstationClass object.
 
Methods inherited from class com.ibm.tws.objects.model.FlowTarget
getDescription, getHeader, getId, getIncludeInPlan, getKey, getLockData, getModifyData, getName, getObjectHeader, getObjectKey, setDescription, setHeader, setId, setIncludeInPlan, setKey, setLockData, setModifyData, setName
 
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

WorkstationClass

public WorkstationClass()
Creates an empty WorkstationClass.


WorkstationClass

public WorkstationClass(WorkstationClassHeader workstationClassHeader)
Creates a WorkstationClass with the specified header.

Parameters:
workstationClassHeader - The workstation class header.
Method Detail

getAllWorkstationsIncluded

public boolean getAllWorkstationsIncluded()
Returns the workstation class allWorkstationsIncluded property.

Returns:
The workstation class allWorkstationsIncluded property.

getWorkstationLinks

public java.util.List getWorkstationLinks()
Returns a reference to the list of workstation links for this workstation class.

Returns:
A reference to the list of workstation links for this workstation class.

setAllWorkstationsIncluded

public void setAllWorkstationsIncluded(boolean value)
Sets the workstation class allWorkstationsIncluded property.

Parameters:
value - The workstation class allWorkstationsIncluded property.

equals

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

Overrides:
equals in class FlowTarget
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 WorkstationClass object.

Overrides:
hashCode in class FlowTarget
Returns:
The object's hash code.

toString

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

Overrides:
toString in class FlowTarget
Returns:
A text string including all WorkstationClass fields.


Copyright © 2005 IBM All Rights Reserved.