com.ptc.windchill.esi.bom
Class BOMHeaderRendererImpl

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended bycom.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

Field Summary
protected static ESIPropertyRequest BOM_HEADER_MAP
           
private static String CLASSNAME
           
private static String DATE_FORMAT_PATTERN
           
private  String groupName
           
private  TaskHelper helper
           
private  ESIMap map
           
private  ESIMapper mapper
           
private  WTPart part
           
private static String RESOURCE
           
private  Collection targets
           
 
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
XML_META_NAME
 
Constructor Summary
BOMHeaderRendererImpl()
           
 
Method Summary
protected  Element adjustElement(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.
 void setData(String groupName, WTPart part, Collection tgts, ESIEffectivityHandler effHandler)
          Store the attributes and reset any variables.
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, getAttsFromMapFile, getBuilder, getEffectivityHandler, getGroupInfo, getMap, getMapInfo, getTargetsFromAssns, invokeQueryTask, logException, mapElement, mapObject, render, setBuilder, setEffectivityHandler
 
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
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

targets

private Collection targets

groupName

private String groupName

part

private WTPart part

BOM_HEADER_MAP

protected static final ESIPropertyRequest BOM_HEADER_MAP

DATE_FORMAT_PATTERN

private static final String DATE_FORMAT_PATTERN
See Also:
Constant Field Values

map

private ESIMap map

mapper

private ESIMapper mapper

helper

private TaskHelper helper
Constructor Detail

BOMHeaderRendererImpl

public BOMHeaderRendererImpl()
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 Element adjustElement(Element elem,
                                String group,
                                WTPart part,
                                Eff eff,
                                Collection targets)
                         throws 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:
ESIRendererException

validate

protected void validate()
                 throws ESIRendererException
Make sure part, groupName, and targets are correct.

Supported API: true

Specified by:
validate in class ResponseRendererImpl
Throws:
ESIRendererException

buildGroups

protected void buildGroups()
                    throws 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:
ESIRendererException

setData

public void setData(String groupName,
                    WTPart part,
                    Collection tgts,
                    ESIEffectivityHandler effHandler)
Store the attributes and reset any variables.

Supported API: false

Specified by:
setData in interface BOMHeaderRenderer
Parameters:
groupName -
part -
tgts -
effHandler -