Class AbstractDiscrepancy2

java.lang.Object
com.ptc.windchill.associativity.reconciliation.AbstractBaseDiscrepancy
com.ptc.windchill.associativity.reconciliation.AbstractDiscrepancy2
All Implemented Interfaces:
Discrepancy2
Direct Known Subclasses:
AbstractAssembleUnderDiscrepancy, AbstractAttributeDiscrepancy, AddUsageDiscrepancy, AssociationDiscrepancy, ItemExpressionDiscrepancy, RemovedUsageDiscrepancy, SCCDiscrepancy

public abstract class AbstractDiscrepancy2 extends AbstractBaseDiscrepancy implements Discrepancy2
The base class to extend to define custom discrepancy.

Supported API: true

Extendable: true
  • Constructor Details

    • AbstractDiscrepancy2

      public AbstractDiscrepancy2(AbstractDiscrepancy2 ad2)

      Supported API: true

      Parameters:
      ad2 -
  • Method Details

    • getConsumptionData

      public AbstractDiscrepancyProcessor.ConsumptionData getConsumptionData()
      Usually populated by verifier and reused by resolver if within same call. Is optional and can be null.
      Supported API: true

      Returns:
    • setConsumptionData

      public void setConsumptionData(AbstractDiscrepancyProcessor.ConsumptionData consumptionData)

      Supported API: true

      Parameters:
      consumptionData -
    • getDiscrepantPath

      public AssociativePath getDiscrepantPath()

      Supported API: true

      Specified by:
      getDiscrepantPath in interface Discrepancy2
      Returns:
      - should never return null once discrepancy is found.
    • setDiscreapantPath

      public void setDiscreapantPath(AssociativePath path)


      Supported API: true
      Parameters:
      path -
    • getResolvedPath

      public AssociativePath getResolvedPath()


      Supported API: true Returns unmodifiable collection so it cannot be changed via getter method
      Specified by:
      getResolvedPath in interface Discrepancy2
      Returns:
      - should not return null once discrepancy is resolved, but before that mostly null
    • setResolvedPath

      public void setResolvedPath(AssociativePath path)


      Supported API: true
      Parameters:
      path -
    • getResolutionAction

      public String getResolutionAction()


      Supported API: true
      Returns:
    • setResolutionAction

      public void setResolutionAction(String resolutionAction)


      Supported API: true
      Parameters:
      resolutionAction -
    • initializeDiscrepancy

      public void initializeDiscrepancy(AssociativePath discrepantPath, Object currentValue, Object previousValue)


      Supported API: true
      Parameters:
      discrepantPath -
      currentValue -
      previousValue -