com.ptc.windchill.esi.bom
Class SubstituteRendererImpl
java.lang.Object
com.ptc.windchill.esi.rnd.ResponseRendererImpl
com.ptc.windchill.esi.bom.ESIWTPartRenderer
com.ptc.windchill.esi.bom.SubstituteRendererImpl
- All Implemented Interfaces:
- BOMPartRenderer, ResponseRenderer, Serializable, SubstituteRenderer
- public class SubstituteRendererImpl
- extends ESIWTPartRenderer
- implements SubstituteRenderer, Serializable
Default implementation of SubstituteRenderer.
Supported API: true
Extendable: true
- See Also:
- Serialized Form
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 |
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
ADDED_SUBSTITUTES
protected static final String ADDED_SUBSTITUTES
- See Also:
- Constant Field Values
DELETED_SUBSTITUTES
protected static final String DELETED_SUBSTITUTES
- See Also:
- Constant Field Values
isAlternateItemGroupActive
protected static final boolean isAlternateItemGroupActive
ESIRESOURCE
protected static final String ESIRESOURCE
- See Also:
- Constant Field Values
taskHelper
private TaskHelper taskHelper
aigManager
private AlternateItemGroupMgr aigManager
SubstituteRendererImpl
public SubstituteRendererImpl()
validate
protected void validate()
throws ESIRendererException
- Calls base class validate().
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:
- Obtains the substitute additions and substitute deletions.
- Maps the output.
- If alternate item groups are required, obtains the appropriate
alternate item group from the alternate item group manager.
- Calls adjustObjectID().
- Calls adjustTargets()
- Calls adjustElement()
- Calls addRenderedPart()
Supported API: true
- Specified by:
buildGroups
in class ResponseRendererImpl
- Throws:
ESIRendererException
adjustElement
protected Element adjustElement(Element elem,
String group,
PartUsageInfo pui,
WTPartMaster sub,
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
- sub
- targets
- Collection of ESITarget objects.
- Returns:
- Element
- Throws:
ESIRendererException
addElements
private void addElements(String grpName,
PartUsageInfo pui,
Enumeration subs)
throws ESIRendererException
- Throws:
ESIRendererException
mapPartUsageInfo
private Element mapPartUsageInfo(String groupName,
PartUsageInfo pui,
WTPartMaster sub,
Collection targets)
throws ESIRendererException
- Throws:
ESIRendererException
getAigMgr
protected AlternateItemGroupMgr getAigMgr()
getTaskHelper
protected TaskHelper getTaskHelper()
convertEnumToVector
protected static Vector convertEnumToVector(Enumeration enum)