com.ptc.windchill.esi.esipart
Class ESIAbstractPart

java.lang.Object
  extended bycom.ptc.windchill.esi.esipart.ESIAbstractPart
Direct Known Subclasses:
ESIAlternatePart, ESIPart

public abstract class ESIAbstractPart
extends Object

Define common behaviors of ESI part abstractions.

Supported API: true

Extendable: true


Field Summary
private static String CLASSNAME
           
private  WTPart current
           
private  WTPart previous
           
private static String RESOURCE
           
private  Vector targets
           
 
Constructor Summary
ESIAbstractPart()
          Declare a default constructor so static methods newInstance() can be called.
ESIAbstractPart(WTPart previousPart, WTPart currentPart)
          Create an instance that is properly initialized.
 
Method Summary
private  void currentValidate(WTPart a_Current)
           
 WTPart getCurrent()
          Gets the object for the association that plays role: current.
 WTPartMaster getMaster()
          Returns the part master associated with the current part.
 WTPart getPrevious()
          Gets the object for the association that plays role: previous.
 Vector getTargets()
          Gets the object for the association that plays role: targets.
 void setCurrent(WTPart a_Current)
          Sets the object for the association that plays role: current.
 void setPrevious(WTPart a_Previous)
          Sets the object for the association that plays role: previous.
 void setTargets(Vector a_Targets)
          Sets the object for the association that plays role: targets.
 
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

current

private WTPart current

previous

private WTPart previous

targets

private Vector targets
Constructor Detail

ESIAbstractPart

public ESIAbstractPart(WTPart previousPart,
                       WTPart currentPart)
Create an instance that is properly initialized.

Supported API: true

Parameters:
previousPart - The part that is the last published iteration of the part that to be processed. May be null.
currentPart - The part that is the current iteration to be processed.

ESIAbstractPart

public ESIAbstractPart()
Declare a default constructor so static methods newInstance() can be called.

Supported API: false

Method Detail

getCurrent

public WTPart getCurrent()
Gets the object for the association that plays role: current.

Supported API: false

Returns:
WTPart

setCurrent

public void setCurrent(WTPart a_Current)
                throws WTPropertyVetoException
Sets the object for the association that plays role: current.

Supported API: false

Parameters:
a_Current -
Throws:
WTPropertyVetoException

currentValidate

private void currentValidate(WTPart a_Current)
                      throws WTPropertyVetoException
Parameters:
a_Current -
Throws:
WTPropertyVetoException

getPrevious

public WTPart getPrevious()
Gets the object for the association that plays role: previous.

Supported API: true

Returns:
WTPart

setPrevious

public void setPrevious(WTPart a_Previous)
                 throws WTPropertyVetoException
Sets the object for the association that plays role: previous.

Supported API: true

Parameters:
a_Previous -
Throws:
WTPropertyVetoException

getTargets

public Vector getTargets()
Gets the object for the association that plays role: targets.

Supported API: true

Returns:
Vector

setTargets

public void setTargets(Vector a_Targets)
                throws WTPropertyVetoException
Sets the object for the association that plays role: targets.

Supported API: true

Parameters:
a_Targets -
Throws:
WTPropertyVetoException

getMaster

public WTPartMaster getMaster()
Returns the part master associated with the current part.

Supported API: true

Returns:
WTPartMaster