Package com.ptc.windchill.mpml.nc
Class DefaultNCFileFixturesParserDelegate
java.lang.Object
com.ptc.windchill.mpml.nc.AbstractNCFileParser
com.ptc.windchill.mpml.nc.AbstractNCFileResourcesParser
com.ptc.windchill.mpml.nc.DefaultNCFileToolingsParserDelegate
com.ptc.windchill.mpml.nc.DefaultNCFileFixturesParserDelegate
- All Implemented Interfaces:
com.ptc.windchill.mpml.nc.NCFileParser
This is the default parser for the fixtures. Its duty is to preload the declared fixtures, 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 TypeMethodDescriptionvoidcollectFixtures(Element element, Object[] fixtures, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch Fixtures from DB and cache them for later use.getAllFixturesFromElement(Element element) Parse the process plan to find all declared fixtures based on xml tag (default: "Component").String[]getFixturesByAttributes(NodeList listOfFixtures) Get fixtures based on xml tag attribute (default: "Type" and "Fixture").Methods inherited from class com.ptc.windchill.mpml.nc.DefaultNCFileToolingsParserDelegate
collectTollings, collectToolingFromCadDocument, getAllTolingsFromElement, getAssociatedPart, getCadDocuments, getNamePrefix, getToolingsByAttribute, parseToolinsMethods 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
-
getAllFixturesFromElement
Parse the process plan to find all declared fixtures based on xml tag (default: "Component").
Supported API: true- Parameters:
element- The XML element containing the declaration of the fixture.- Returns:
- NodeList Nodes (coming from the XML file) to process.
-
getFixturesByAttributes
Get fixtures based on xml tag attribute (default: "Type" and "Fixture").
Supported API: true- Parameters:
listOfFixtures- The XML node list containing the declaration of the fixtures.- Returns:
- String fixtures that will later be used by the operations
-
collectFixtures
public void collectFixtures(Element element, Object[] fixtures, NCFileHelperData iHelperData, NCFileLog iLog, String configuredAttribute) Logic used to fetch Fixtures from DB and cache them for later use. Method can be used to change logic of collecting Fixtures by updating iHelperData
Supported API: true- Parameters:
element- The XML element containing the declaration of the Fixture.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-
-