Package com.ptc.windchill.mpml.nc
Class DefaultNCFileProcessPlanParserDelegate
java.lang.Object
com.ptc.windchill.mpml.nc.AbstractNCFileParser
com.ptc.windchill.mpml.nc.DefaultNCFileProcessPlanParserDelegate
- All Implemented Interfaces:
com.ptc.windchill.mpml.nc.NCFileParser
public class DefaultNCFileProcessPlanParserDelegate
extends com.ptc.windchill.mpml.nc.AbstractNCFileParser
This is the default parser for the NC process plan. In an NC/XML file, the process plan is the main element, and
declares the resources, operations and steps.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.mpml.nc.AbstractNCFileParser
RESOURCE_BUNDLE -
Method Summary
Modifier and TypeMethodDescriptioncollectExistingOperations(MPMOperationHolder mainSelection, NCServerHolder serverHolder) Collect operation based on given MPMOperationHolder and Navigation Criteria holder.getAllFixturesFromElement(Element element) Parse the process plan to find all declared Fixtures based on xml tag (Default: "Components").getAllOperationsFromElement(Element element) Parse the process plan to find all declared opearations based on xml tag (default: "Operation").getAllToolsFromElement(Element element) Parse the process plan to find all declared Tools based on xml tag (Default: "Tools").getAllUnitsFromElement(Element element) Parse the process plan to find all declared Units based on xml tag (Default: "Units").getAllWorkCentersFromElement(Element element) Parse the process plan to find all declared WorkCenters based on xml tag (Default: "Workcells").String[]List of Unit attributes names
Supported API: trueMethods inherited from class com.ptc.windchill.mpml.nc.AbstractNCFileParser
getAttributeForCadDocumentUniqueId, getAttributeForUniqueId, getElementName, getId, getId, getId, getId, getId, getLatestIterationForCADDocument, getLatestIterations, isNullOrBlank, logAdd, logError, logRemove, logReplaced, logSuccess, logUpdate, queryFromDB
-
Method Details
-
collectExistingOperations
public Collection collectExistingOperations(MPMOperationHolder mainSelection, NCServerHolder serverHolder) throws WTException Collect operation based on given MPMOperationHolder and Navigation Criteria holder. Find all children operations (at all levels)
Supported API: true- Parameters:
mainSelection- Selected object for which action was startediHelperData- The client info and data for parsing (user options, locales, database objects).- Returns:
- Collection of all retrieved operations
- Throws:
WTException
-
getUnitAttributes
List of Unit attributes names
Supported API: true- Returns:
- String[] unit attributes names
-
getAllUnitsFromElement
Parse the process plan to find all declared Units based on xml tag (Default: "Units").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the Unit.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getAllWorkCentersFromElement
Parse the process plan to find all declared WorkCenters based on xml tag (Default: "Workcells").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the WorkCenter.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getAllFixturesFromElement
Parse the process plan to find all declared Fixtures based on xml tag (Default: "Components").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the Fixture.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getAllToolsFromElement
Parse the process plan to find all declared Tools based on xml tag (Default: "Tools").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the Tool.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getAllOperationsFromElement
Parse the process plan to find all declared opearations based on xml tag (default: "Operation").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the opearation.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-