Package com.ptc.windchill.mpml.nc
Class DefaultNCFileToolingsParserDelegate
java.lang.Object
com.ptc.windchill.mpml.nc.AbstractNCFileParser
com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
com.ptc.windchill.mpml.nc.DefaultNCFileToolingsParserDelegate
- All Implemented Interfaces:
com.ptc.windchill.mpml.nc.NCFileParser
- Direct Known Subclasses:
DefaultNCFileFixturesParserDelegate
public class DefaultNCFileToolingsParserDelegate
extends com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
This is the default parser for the toolings. Its duty is to preload the declared toolings, in order for them to be
ready when the operations will need them.
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 TypeMethodDescriptionvoidcollectTollings(Element element, Object[] toolings, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch toolings from DB and cache them for later use.voidcollectToolingFromCadDocument(Element element, String[] toolingIDs, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch toolings from DB and cache them for later use.getAllTolingsFromElement(Element element) Parse the process plan to find all declared toolings based on xml tag (default: "Tool").getAssociatedPart(EPMDocument document) Gets associated owner WTPartgetNamePrefix(Element iElement) Get the name prefix for this Tool.getToolingsByAttribute(Element tooling) Get tooling based on xml tag attribute (default: "Id").Methods inherited from class com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
logWarningMethods 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
-
getAllTolingsFromElement
Parse the process plan to find all declared toolings based on xml tag (default: "Tool").
Supported API: true- Parameters:
element- The XML element containing the declaration of the Tooling.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getToolingsByAttribute
Get tooling based on xml tag attribute (default: "Id").
Supported API: true- Parameters:
tooling- The XML element containing the declaration of the Tooling.- Returns:
- String toolings that will later be used by the operations
-
collectTollings
public void collectTollings(Element element, Object[] toolings, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) throws WTException Logic used to fetch toolings from DB and cache them for later use. Method can be used to change logic of collecting toolings by updating iHelperData
Supported API: true- Parameters:
element- The XML element containing the declaration of the Tooling.iHelperData- The data that will be useful for the parsing (client locale, user options, element(s) selected, database objects, etc).iLog- The log describing the parsing status. The parsing process is expected to populate the statusconfiguredAttribute-- Throws:
WTException
-
collectToolingFromCadDocument
public void collectToolingFromCadDocument(Element element, String[] toolingIDs, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) throws WTException Logic used to fetch toolings from DB and cache them for later use. Method can be used to change logic of collecting toolings by updating iHelperData
Supported API: true- Parameters:
element- The XML element containing the declaration of the Tooling.iHelperData- The data that will be useful for the parsing (client locale, user options, element(s) selected, database objects, etc).iLog- The log describing the parsing status. The parsing process is expected to populate the statusconfiguredAttribute-- Throws:
WTException
-
getNamePrefix
Get the name prefix for this Tool. The name prefix will be displayed next to the tool name in the report.
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the tooling.- Returns:
- The name prefix.
-
getAssociatedPart
Gets associated owner WTPart- Parameters:
document- EPMDocument- Returns:
- associated owner WTPart
- Throws:
WTException-
Supported API: true
-