com.ptc.windchill.esi.esipart
Class ESIPart

java.lang.Object
  extended bycom.ptc.windchill.esi.esipart.ESIAbstractPart
      extended bycom.ptc.windchill.esi.esipart.ESIPart

public class ESIPart
extends ESIAbstractPart

Wraps a WTPart and maintains useful relationships for the benefit of a part renderer.

Supported API: true

Extendable: false


Field Summary
private  Collection alternateLinks
           
private  Collection alternates
           
private static String CLASSNAME
           
private static String RESOURCE
           
private  ESITargetUtility targetUtility
           
 
Fields inherited from class com.ptc.windchill.esi.esipart.ESIAbstractPart
 
Constructor Summary
ESIPart()
           
 
Method Summary
 Collection getAlternateLinks()
          Gets the object for the association that plays role: alternateLinks.
 Collection getAlternates()
          Gets the object for the association that plays role: alternates.
 QueryResult getPartInfo(ESIAbstractPart part)
          Find the master and obtain all alternate parts associated with it.
protected  void initialize(String ufid)
          Obtains the WTPart object identified by the ufid argument and stores it in the current attribute.
static ESIPart newESIPart(String ufid)
          Create an instance of ESIPart, given the UFID of a part.
protected  void setAlternateLinks(Collection a_AlternateLinks)
          Sets the object for the association that plays role: alternateLinks.
 void setAlternates(Collection a_Alternates)
          Sets the object for the association that plays role: alternates.
 
Methods inherited from class com.ptc.windchill.esi.esipart.ESIAbstractPart
getCurrent, getMaster, getPrevious, getTargets, setCurrent, setPrevious, setTargets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

alternates

private Collection alternates

alternateLinks

private Collection alternateLinks

targetUtility

private ESITargetUtility targetUtility
Constructor Detail

ESIPart

public ESIPart()
Method Detail

getAlternates

public Collection getAlternates()
Gets the object for the association that plays role: alternates.

Supported API: true

Returns:
Collection

setAlternates

public void setAlternates(Collection a_Alternates)
Sets the object for the association that plays role: alternates.

Supported API: true

Parameters:
a_Alternates -

getAlternateLinks

public Collection getAlternateLinks()
Gets the object for the association that plays role: alternateLinks.

Supported API: true

Returns:
Collection

setAlternateLinks

protected void setAlternateLinks(Collection a_AlternateLinks)
Sets the object for the association that plays role: alternateLinks.

Supported API: true

Parameters:
a_AlternateLinks -

newESIPart

public static ESIPart newESIPart(String ufid)
                          throws WTException,
                                 WTPropertyVetoException
Create an instance of ESIPart, given the UFID of a part.

Supported API: true

Parameters:
ufid -
Returns:
ESIPart
Throws:
WTException
WTPropertyVetoException

getPartInfo

public QueryResult getPartInfo(ESIAbstractPart part)
                        throws WTException
Find the master and obtain all alternate parts associated with it. Store the alternates in the alternates collection. Store the link in the alternateLinks collection.

Supported API: true

Parameters:
part - The part to obtain information about.
Returns:
QueryResult
Throws:
WTException

initialize

protected void initialize(String ufid)
                   throws WTException,
                          WTPropertyVetoException
Obtains the WTPart object identified by the ufid argument and stores it in the current attribute.

Supported API: true

Parameters:
ufid - UFID of a WTPart.
Throws:
WTException
WTPropertyVetoException