Package wt.vc

Class VersionToObjectLink

java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.vc._VersionToObjectLink
wt.vc.VersionToObjectLink
All Implemented Interfaces:
Externalizable, Serializable, wt.fc._BinaryLink, wt.fc._Link, wt.fc._NetFactor, wt.fc._ObjectMappable, wt.fc._Persistable, BinaryLink, Link, NetFactor, ObjectMappable, Persistable, DisplayIdentification
Direct Known Subclasses:
_AffectedActivityData, _ChangeRecord2, wt.change2._ChangeReviewItemLink, wt.mpm._MPMPartMgmtLink, _RelevantAnalysisData, _RelevantRequestData2, _ReportedAgainst

The VersionToObjectLink provides a binary type of link between a version object (role A) and a persistable object (role B). When used in navigating from the version object to its associated persistable object, only the latest iteration is found. Navigating from the persistable object to its associated version object acts a typical navigation, but is applicable only from the latest iteration.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • 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.
    • 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 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
      Overrides:
      duplicate in class WTObject
      Returns:
      WTObject
      Throws:
      WTException
    • initialize

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

      Supported API: true
      Parameters:
      roleAObject -
      roleBObject -
      Throws:
      WTException