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
  • Method Details

    • getAllTolingsFromElement

      public NodeList getAllTolingsFromElement(Element element)
      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

      public String getToolingsByAttribute(Element tooling)
      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 status
      configuredAttribute -
      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 status
      configuredAttribute -
      Throws:
      WTException
    • getNamePrefix

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

      public List<WTPartMaster> getAssociatedPart(EPMDocument document) throws WTException
      Gets associated owner WTPart
      Parameters:
      document - EPMDocument
      Returns:
      associated owner WTPart
      Throws:
      WTException -

      Supported API: true