com.ptc.windchill.esi.bom
Class BOMComponentRendererImpl

java.lang.Object
  extended by com.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended by com.ptc.windchill.esi.bom.ESIWTPartRenderer
          extended by com.ptc.windchill.esi.bom.BOMComponentRendererImpl
All Implemented Interfaces:
BOMComponentRenderer, BOMPartRenderer, ResponseRenderer, Serializable

public class BOMComponentRendererImpl
extends ESIWTPartRenderer
implements BOMComponentRenderer, Serializable

Default implementation of BOMComponentRender.

Supported API: true

Extendable: true

See Also:
Serialized Form

Method Summary
protected  com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, PartUsageInfo pui, Collection targets)
          Allow subclasses to fix the contents of an element before it's added to the output group(s).
protected  void buildGroups()
          Builds the renderer output.
protected  void validate()
          Insure that the object is ready to process.
 
Methods inherited from class com.ptc.windchill.esi.bom.ESIWTPartRenderer
addRenderedPart, addRenderedPart, areComponentQuantitiesRequired, areLineNumbersEnforced, getDeltaParts, getPart, getRenderedParts, getRoot, getTargets, isLineNumberEnabled
 
Methods inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
adjustEffectivities, adjustObjectID, adjustTargets, buildUfidString, getBuilder, invokeQueryTask, mapElement, mapObject, render, setBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ptc.windchill.esi.bom.BOMPartRenderer
setData
 
Methods inherited from interface com.ptc.windchill.esi.rnd.ResponseRenderer
render
 

Method Detail

validate

protected void validate()
                 throws com.ptc.windchill.esi.rnd.ESIRendererException
Insure that the object is ready to process. Throws an exception if:

Supported API: true

Throws:
com.ptc.windchill.esi.rnd.ESIRendererException

buildGroups

protected void buildGroups()
                    throws com.ptc.windchill.esi.rnd.ESIRendererException
Builds the renderer output. For each Collection element in the deltaParts array, iterates the Collection and:
  1. Obtains the list of ESITargets associated
  2. If alternate item groups are required, obtains the appropriate alternate item group from the alternate item group manager.
  3. Maps the PartUsageInfo object that is contained in the Collection.
  4. Calls adjustObjectID().
  5. Calls adjustTargets().
  6. Calls adjustElement().
  7. Adds the part master to the partMasters collection by calling addRenderedPart().


Supported API: true

Specified by:
buildGroups in class ResponseRendererImpl
Throws:
com.ptc.windchill.esi.rnd.ESIRendererException

adjustElement

protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem,
                                                              String group,
                                                              PartUsageInfo pui,
                                                              Collection targets)
                                                       throws com.ptc.windchill.esi.rnd.ESIRendererException
Allow subclasses to fix the contents of an element before it's added to the output group(s). Default behavior is to return the argument.

Supported API: true

Parameters:
elem -
group -
pui -
targets - Collection of ESITarget objects.
Returns:
Element
Throws:
com.ptc.windchill.esi.rnd.ESIRendererException