Package com.ptc.windchill.mpml.nc
Class NCFileHelperData
java.lang.Object
com.ptc.windchill.mpml.nc.NCFileHelperData
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
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddParsedOperation(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.voidaddUpdatedOperation(MPMOperation operation) Cache the updated operations for displaying information in preview UI.Retrieve the additional attribute holder used by the client.Retrieve the resource data holder used by the client.getResourceData(WTPartMaster resourceMaster) Retrieve the resource data for given MPMResourceMaster.getResourceDataForOperationAndSteps(MPMOperationHolderMaster operationHolderMaster) Retrieve the resource data for given MPMResourceMaster.getResourceDataForOperationAndSteps(MPMOperationHolderMaster operationHolderMaster, WTPartMaster resourceMaster) Retrieve the resource data for given MPMResourceMaster.Retrieve the resource data holder used by the client.Retrieve the updated operations.voidsetAdditionalAttribute(Object attribute) Cache the additional attribute for future use.voidsetOperationAndStepsResourcesData(Map<MPMOperationHolderMaster, List<NCFileResouceData>> resourceDatasMap) Cache the resource data for future use.voidsetResourcesData(List<NCFileResouceData> resourceDatas) Cache the resource data for future use.
-
Method Details
-
setAdditionalAttribute
Cache the additional attribute for future use.
Supported API: true- Parameters:
Object- attribute to cache.
-
getAdditionalAttribute
Retrieve the additional attribute holder used by the client.
Supported API: true- Returns:
- The additional attribute.
-
setResourcesData
Cache the resource data for future use.
Supported API: true- Parameters:
resource- data to cache.
-
getResourcesData
Retrieve the resource data holder used by the client.
Supported API: true- Returns:
- The resource data.
-
getResourceData
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
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
Retrieve the updated operations.
Supported API: true- Returns:
- List of operation masters
-
addUpdatedOperation
Cache the updated operations for displaying information in preview UI.
Supported API: true- Parameters:
operation- operation.
-
addParsedOperation
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
-