Interface CheckIfReplacementDelegate


public interface CheckIfReplacementDelegate
This service interface checks whether the selected part is a replacement.
Supported API: true

Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAnAlternateOf(WTPartMaster selectedPartMaster, WTPartMaster partMaster)
    Determines if part master A is an alternate of part master B

    Supported API: true
    boolean
    isASubstituteOf(WTPartMaster selectedPartMaster, WTPart parentPart, WTPart childPart)
    Determines if partMasterA is a substitute of partB

    Supported API: true
  • Method Details

    • isAnAlternateOf

      boolean isAnAlternateOf(WTPartMaster selectedPartMaster, WTPartMaster partMaster) throws WTException
      Determines if part master A is an alternate of part master B

      Supported API: true
      Parameters:
      selectedPartMaster -
      partMaster -
      Returns:
      true if selectedPartMaster is an alternate of partMaster; false otherwise
      Throws:
      WTException
    • isASubstituteOf

      boolean isASubstituteOf(WTPartMaster selectedPartMaster, WTPart parentPart, WTPart childPart) throws WTException
      Determines if partMasterA is a substitute of partB

      Supported API: true
      Parameters:
      selectedPartMaster - WTPartMaster which would be a substitute Part
      parentPart - RoleA of link for which Substitute will be fetched.
      childPart - RoleB of link for which Substitute will be fetched.
      Returns:
      true if selectedPartMaster is a substitute of part; false otherwise
      Throws:
      WTException
      See Also: