com.ptc.windchill.esi.bom
Class BOMHeaderRendererImpl

java.lang.Object
  extended by com.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended by com.ptc.windchill.esi.bom.BOMHeaderRendererImpl
All Implemented Interfaces:
BOMHeaderRenderer, ResponseRenderer, Serializable

public class BOMHeaderRendererImpl
extends ResponseRendererImpl
implements BOMHeaderRenderer, Serializable

This class is the default implementation of the BOMHeaderRender interface.

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, WTPart part, Eff eff, 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  String getGroupName()
          Gets the value of the attribute: groupName; The logical name of a VdbGroup.
protected  WTPart getPart()
          Gets the value of the attribute: part; The assembly part for this BOM.
protected  Collection getTargets()
          Gets the value of the attribute: targets; A collection ESITarget objects.
protected  void validate()
          Make sure part, groupName, and targets are correct.
 
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.rnd.ResponseRenderer
render
 

Method Detail

getTargets

protected Collection getTargets()
Gets the value of the attribute: targets; A collection ESITarget objects.

Supported API: true

Returns:
Collection

getGroupName

protected String getGroupName()
Gets the value of the attribute: groupName; The logical name of a VdbGroup.

Supported API: true

Returns:
String

getPart

protected WTPart getPart()
Gets the value of the attribute: part; The assembly part for this BOM.

Supported API: true

Returns:
WTPart

adjustElement

protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem,
                                                              String group,
                                                              WTPart part,
                                                              Eff eff,
                                                              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 - The element to be updated.
group - The logical name of the group to which the element will be added.
part - The assembly part that is being processed.
eff - May be null.
targets - Collection of ESITarget objects.
Returns:
Element
Throws:
com.ptc.windchill.esi.rnd.ESIRendererException

validate

protected void validate()
                 throws com.ptc.windchill.esi.rnd.ESIRendererException
Make sure part, groupName, and targets are correct.

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. Does the following:
  1. Obtains the targets for part.
  2. Maps the output.
  3. Calls adjustObjectID() on the base class.
  4. Calls adjustTargets() on the base class.
  5. Calls adjustEffectivities() on the base class.
  6. Calls adjustElement().
  7. Passes the element to the VdbBuilder.


Supported API: true

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