Class NCFileHelperData

java.lang.Object
com.ptc.windchill.mpml.nc.NCFileHelperData

public class NCFileHelperData extends Object
This class is meant to help in the parsing of NC/XML files. It contains services to store temporarily the objects existing in the database at the time of import. These objects will most likely be checked out, updated or allocated.

Supported API: true

Extendable: true
  • Method Details

    • setAdditionalAttribute

      public void setAdditionalAttribute(Object attribute)
      Cache the additional attribute for future use.

      Supported API: true
      Parameters:
      Object - attribute to cache.
    • getAdditionalAttribute

      public Object getAdditionalAttribute()
      Retrieve the additional attribute holder used by the client.

      Supported API: true
      Returns:
      The additional attribute.
    • setResourcesData

      public void setResourcesData(List<NCFileResouceData> resourceDatas)
      Cache the resource data for future use.

      Supported API: true
      Parameters:
      resource - data to cache.
    • getResourcesData

      public List<NCFileResouceData> getResourcesData()
      Retrieve the resource data holder used by the client.

      Supported API: true
      Returns:
      The resource data.
    • getResourceData

      public List<NCFileResouceData> getResourceData(WTPartMaster resourceMaster)
      Retrieve the resource data for given MPMResourceMaster.

      Supported API: true
      Returns:
      The resource data.
    • setOperationAndStepsResourcesData

      public void setOperationAndStepsResourcesData(Map<MPMOperationHolderMaster,List<NCFileResouceData>> resourceDatasMap)
      Cache the resource data for future use.

      Supported API: true
      Parameters:
      resourceDatasMap - data to cache.
    • getOperationAndStepsResourcesData

      public Map<MPMOperationHolderMaster,List<NCFileResouceData>> getOperationAndStepsResourcesData()
      Retrieve the resource data holder used by the client.

      Supported API: true
      Returns:
      The resource data.
    • getResourceDataForOperationAndSteps

      public List<NCFileResouceData> getResourceDataForOperationAndSteps(MPMOperationHolderMaster operationHolderMaster, WTPartMaster resourceMaster)
      Retrieve the resource data for given MPMResourceMaster.

      Supported API: true
      Returns:
      The resource data.
    • getResourceDataForOperationAndSteps

      public List<NCFileResouceData> getResourceDataForOperationAndSteps(MPMOperationHolderMaster operationHolderMaster)
      Retrieve the resource data for given MPMResourceMaster.

      Supported API: true
      Returns:
      The resource data.
    • getUpdatedOperations

      public List<MPMOperationMaster> getUpdatedOperations()
      Retrieve the updated operations.

      Supported API: true
      Returns:
      List of operation masters
    • addUpdatedOperation

      public void addUpdatedOperation(MPMOperation operation)
      Cache the updated operations for displaying information in preview UI.

      Supported API: true
      Parameters:
      operation - operation.
    • addParsedOperation

      public void addParsedOperation(String iParentName, MPMOperation iOperation, String iOperationName)
      Cache the parsed operations and steps for later use to compare with preexisting operations to check what should be removed from Process Plan structure.

      Supported API: true
      Parameters:
      iParentName - The name of the operation's parent.
      iOperation - The operation itself.
      iOperationName - The operation's name