|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.rnd.ResponseRendererImpl
com.ptc.windchill.esi.bom.ESIWTPartRenderer
Abstract class to provide services to receive, and access common data
elements
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private Collection[] |
deltaParts
|
private static boolean |
enforceLineNumbers
|
private boolean |
lineNumberEnabled
|
private WTPart |
part
|
private HashSet |
partMasters
|
private static boolean |
requireComponentQuantity
|
private static String |
RESOURCE
|
private WTPart |
root
|
private Collection |
targets
|
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl |
XML_META_NAME |
Constructor Summary | |
ESIWTPartRenderer()
|
Method Summary | |
void |
addRenderedPart(PartUsageInfo pui)
Obtain the part master object from the PartUsageInfo in the argument and add it to the partMasters collection. |
void |
addRenderedPart(WTPartMaster partMaster)
Add the argument to the partMasters collection. |
protected boolean |
areComponentQuantitiesRequired()
getter for requireComponentQuantities attribute. |
protected boolean |
areLineNumbersEnforced()
getter for enforceLineNumbers attribute. |
protected Collection[] |
getDeltaParts()
Gets the value of the attribute: deltaParts; An array of Collections containing WTPart objects. |
protected WTPart |
getPart()
Gets the value of the attribute: part; The part being rendered. |
Collection |
getRenderedParts()
Returns a collection of WTPart objects which represent the parts used for rendering. |
protected WTPart |
getRoot()
Gets the value of the attribute: root; If the part being rendered is part of a tree of product structures, this attribute contains the top of the tree. |
protected Collection |
getTargets()
Gets the value of the attribute: targets; A collection of ESITarget objects. |
protected boolean |
isLineNumberEnabled()
Gets the value of the attribute: lineNumberEnabled; Are line numbers to be included on the output? Supported API: true |
void |
setData(WTPart root,
WTPart part,
Collection[] deltaParts,
Collection orgs,
boolean lineNumbers)
Set the renderer's state so that it is ready to process. |
protected void |
validate()
Force all subclasses to implement the method. |
Methods inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl |
adjustEffectivities, adjustObjectID, adjustTargets, buildGroups, 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 |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean enforceLineNumbers
private static boolean requireComponentQuantity
private Collection[] deltaParts
private Collection targets
private boolean lineNumberEnabled
private WTPart part
private WTPart root
private HashSet partMasters
Constructor Detail |
public ESIWTPartRenderer()
Method Detail |
protected Collection[] getDeltaParts()
protected Collection getTargets()
protected boolean isLineNumberEnabled()
protected WTPart getPart()
protected WTPart getRoot()
protected boolean areLineNumbersEnforced()
protected boolean areComponentQuantitiesRequired()
public Collection getRenderedParts() throws WTException
getRenderedParts
in interface BOMPartRenderer
WTException
public void addRenderedPart(PartUsageInfo pui)
pui
- A PartUsageInfo object containing a WTPartMaster.public void addRenderedPart(WTPartMaster partMaster)
partMaster
- protected void validate() throws ESIRendererException
ResponseRendererImpl
validate
in class ResponseRendererImpl
ESIRendererException
public void setData(WTPart root, WTPart part, Collection[] deltaParts, Collection orgs, boolean lineNumbers)
BOMPartRenderer
setData
in interface BOMPartRenderer
root
- The root part for which the BOM is being rendered.part
- Presumed to be the assembly part for BOMs.deltaParts
- an array of enumerationsorgs
- A collection of ESI targetslineNumbers
- Are line numbers to be included in the output?
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |