wt.vc
Class VersionToVersionLink

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.vc.VersionToVersionLink
All Implemented Interfaces:
Externalizable, Serializable, BinaryLink, Link, NetFactor, ObjectMappable, Persistable, DisplayIdentification
Direct Known Subclasses:
AcceptedStrategy, AddressedBy2, DetailedBy, EPMBuildRule, EPMDerivedRepRule, FormalizedBy, IncludedIn2, ResearchedBy

public abstract class VersionToVersionLink
extends WTObject
implements BinaryLink, Externalizable

The VersionToVersionLink provides a binary type of link between two versions. Navigating between them is applicable only from the latest iteration on either side, and results in finding the other side's latest iteration.

Supported API: true

Extendable: true

See Also:
Serialized Form

Method Summary
 WTObject duplicate()
          Create a deep copy of this Link.
 Object[] getAllObjects()
          Gets all the role objects of this link.
 Object getRoleObject(String rolename)
          Gets the role object of this link for the given role name.
protected  void initialize(Iterated roleAObject, Iterated roleBObject)
          Default initializer for Link objects.
 void setRoleAObject(Persistable roleAObject)
          Sets the role A object for this Link.
 void setRoleBObject(Persistable roleBObject)
          Sets the role B object for this Link.
 void setRoleObject(Object roleObject, String rolename)
          Sets the role object of this link for the given role name.
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setRoleAObject

public void setRoleAObject(Persistable roleAObject)
Sets the role A object for this Link.

Supported API: true

Parameters:
roleAObject - The role A object for this Link.

setRoleBObject

public void setRoleBObject(Persistable roleBObject)
Sets the role B object for this Link.

Supported API: true

Parameters:
roleBObject - The role B object for this Link.

getAllObjects

public Object[] getAllObjects()
Gets all the role objects of this link.

Supported API: true

Returns:
Object[]

getRoleObject

public Object getRoleObject(String rolename)
                     throws WTException
Gets the role object of this link for the given role name.

Supported API: true

Parameters:
rolename -
Returns:
Object
Throws:
WTException

setRoleObject

public void setRoleObject(Object roleObject,
                          String rolename)
                   throws WTException
Sets the role object of this link for the given role name.

Supported API: true

Parameters:
roleObject - The role A object for this Link.
rolename -
Throws:
WTException

duplicate

public WTObject duplicate()
                   throws WTException
Create a deep copy of this Link. This overriding method ensures that the copy has the same references to the roleA and roleB members as the source object.

Supported API: true

Returns:
WTObject
Throws:
WTException

initialize

protected void initialize(Iterated roleAObject,
                          Iterated roleBObject)
                   throws WTException
Default initializer for Link objects.

Supported API: true

Parameters:
roleAObject -
roleBObject -
Throws:
WTException