com.ptc.windchill.esi.bom
Class ReferenceDesignatorRendererImpl

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended bycom.ptc.windchill.esi.bom.ESIWTPartRenderer
          extended bycom.ptc.windchill.esi.bom.ReferenceDesignatorRendererImpl
All Implemented Interfaces:
BOMPartRenderer, ReferenceDesignatorRenderer, ResponseRenderer, Serializable

public class ReferenceDesignatorRendererImpl
extends ESIWTPartRenderer
implements ReferenceDesignatorRenderer, Serializable

Default implementation of ReferenceDesignatorRenderer.

Supported API: true

Extendable: true

See Also:
Serialized Form

Field Summary
protected static String ADDED_GROUP
           
private static String CLASSNAME
           
protected static String DELETED_GROUP
           
protected static String ESIRESOURCE
           
protected static String NULL_STRING
           
private static String RESOURCE
           
private  TaskHelper taskHelper
           
 
Fields inherited from class com.ptc.windchill.esi.bom.ESIWTPartRenderer
 
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
XML_META_NAME
 
Constructor Summary
ReferenceDesignatorRendererImpl()
           
 
Method Summary
private  void addElements(String groupName, PartUsageInfo pui, Enumeration rds)
           
protected  Element adjustElement(Element elem, String group, PartUsageInfo pui, UsesOccurrence rd, Collection targets)
          Allow subclasses to fix the contents of an element before it's added to the output group(s).
protected  void buildGroups()
          Produces the renderer's output.
protected  TaskHelper getTaskHelper()
           
private  Element mapPartUsageInfo(String groupName, PartUsageInfo pui, UsesOccurrence rd, Collection targets)
           
protected  void validate()
          Makes sure that the object is ready to create output.
 
Methods inherited from class com.ptc.windchill.esi.bom.ESIWTPartRenderer
addRenderedPart, addRenderedPart, areComponentQuantitiesRequired, areLineNumbersEnforced, getDeltaParts, getPart, getRenderedParts, getRoot, getTargets, isLineNumberEnabled, setData
 
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.bom.BOMPartRenderer
getRenderedParts, setData
 
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

NULL_STRING

protected static final String NULL_STRING
See Also:
Constant Field Values

DELETED_GROUP

protected static final String DELETED_GROUP
See Also:
Constant Field Values

ADDED_GROUP

protected static final String ADDED_GROUP
See Also:
Constant Field Values

ESIRESOURCE

protected static final String ESIRESOURCE
See Also:
Constant Field Values

taskHelper

private TaskHelper taskHelper
Constructor Detail

ReferenceDesignatorRendererImpl

public ReferenceDesignatorRendererImpl()
Method Detail

validate

protected void validate()
                 throws ESIRendererException
Makes sure that the object is ready to create output. Calls base class method.

Supported API: true

Overrides:
validate in class ESIWTPartRenderer
Throws:
ESIRendererException

buildGroups

protected void buildGroups()
                    throws ESIRendererException
Produces the renderer's output. Obtains the deltaParts array of Collections from the base class. Iterates each Collection in turn. For each entry in the iterations:
  1. Obtains the reference designator additions and reference designator deletions.
  2. Maps the output.
  3. Calls adjustObjectID().
  4. Calls adjustTargets()
  5. Calls adjustElement()
  6. Calls addRenderedPart()


Supported API: true

Specified by:
buildGroups in class ResponseRendererImpl
Throws:
ESIRendererException

adjustElement

protected Element adjustElement(Element elem,
                                String group,
                                PartUsageInfo pui,
                                UsesOccurrence rd,
                                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 -
group -
pui -
rd -
targets - Collection of ESITarget objects.
Returns:
Element
Throws:
ESIRendererException

addElements

private void addElements(String groupName,
                         PartUsageInfo pui,
                         Enumeration rds)
                  throws ESIRendererException
Throws:
ESIRendererException

mapPartUsageInfo

private Element mapPartUsageInfo(String groupName,
                                 PartUsageInfo pui,
                                 UsesOccurrence rd,
                                 Collection targets)
                          throws ESIRendererException
Throws:
ESIRendererException

getTaskHelper

protected TaskHelper getTaskHelper()