Package com.ptc.windchill.mpml.nc
Class DefaultNCFileWorkCentersParserDelegate
java.lang.Object
com.ptc.windchill.mpml.nc.AbstractNCFileParser
com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
com.ptc.windchill.mpml.nc.DefaultNCFileWorkCentersParserDelegate
- All Implemented Interfaces:
com.ptc.windchill.mpml.nc.NCFileParser
public class DefaultNCFileWorkCentersParserDelegate
extends com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
This is the default parser for the work centers. Its duty is to preload the declared work centers, 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 TypeMethodDescriptionvoidcollectWorkCenters(Element element, Object[] workCenters, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch work centers from DB and cache them for later use.getAllWorkCentersFromElement(Element element) Parse the process plan to find all declared work centers (work cells) based on xml tag (default: "Workcell").getNamePrefix(Element iElement) Get the name prefix for this Work Center.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
-
getAllWorkCentersFromElement
Parse the process plan to find all declared work centers (work cells) based on xml tag (default: "Workcell").
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the Work Center.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
collectWorkCenters
public void collectWorkCenters(Element element, Object[] workCenters, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch work centers from DB and cache them for later use. Method can be used to change logic of collecting WorkCenters by updating iHelperData
Supported API: true- Parameters:
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-iElement- The XML element containing the declaration of the Work Center.
-
getNamePrefix
Get the name prefix for this Work Center. The name prefix will be displayed next to the Work Center name in the report.
Supported API: true- Parameters:
iElement- The XML element containing the declaration of the Work Center.- Returns:
- The name prefix.
-