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
  • Field Summary

    Fields inherited from class com.ptc.windchill.mpml.nc.AbstractNCFileParser

    RESOURCE_BUNDLE
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Parse the process plan to find all declared work centers (work cells) based on xml tag (default: "Workcell").
    Get the name prefix for this Work Center.

    Methods inherited from class com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser

    logWarning

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getAllWorkCentersFromElement

      public NodeList getAllWorkCentersFromElement(Element element)
      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 status
      configuredAttribute -
      iElement - The XML element containing the declaration of the Work Center.
    • getNamePrefix

      public String getNamePrefix(Element iElement)
      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.