wt.clients.prodmgmt
Class AllocatedPartItem

java.lang.Object
  extended bywt.clients.beans.explorer.WTBusinessObject
      extended bywt.clients.prodmgmt.PartItem
          extended bywt.clients.prodmgmt.ConfiguredPartItem
              extended bywt.clients.prodmgmt.AllocatedPartItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder, Serializable

public class AllocatedPartItem
extends ConfiguredPartItem

PartItem is a model class for manipulating WTPart objects. It contains helper methods for manipulating attributes and relationships of the WTPart class. It extends wt.clients.beans.WTBusinessObject to allow easy manipulation in the wt.clients.beans.WTExplorer.

Supported API: false

Extendable: false

See Also:
WTPart, Serialized Form

Field Summary
(package private)  InstanceItem instance
           
(package private)  SerialNumberMapping snMapping
           
(package private)  WTSerialNumberedPartInstance snPartInstance
           
 
Fields inherited from class wt.clients.prodmgmt.ConfiguredPartItem
configuration, override, parentItem, pathOccurrence, usesOccurrence
 
Fields inherited from class wt.clients.prodmgmt.PartItem
 
Fields inherited from class wt.clients.beans.explorer.WTBusinessObject
 
Constructor Summary
AllocatedPartItem()
          Constructs a new AllocatedPartItem.
AllocatedPartItem(WTPart part)
          Constructs a new AllocatedPartItem.
 
Method Summary
 InstanceItem getInstanceItem()
          Returns the product configuration for this product.
 SerialNumberMapping getSNMapping()
           
 WTSerialNumberedPartInstance getSNPartInstance()
           
 Explorable[] getUses()
          Returns an array of Explorable objects this PartItem uses.
 void setInstanceItem(InstanceItem instance)
          Sets the product configuration for this product.
 void setProductInstance(WTProductInstance2 instance)
          Sets the product configuration for this product.
 void setSNMapping(SerialNumberMapping sn_mapping)
           
 void setSNPartInstance(WTSerialNumberedPartInstance sn_part_instance)
           
 
Methods inherited from class wt.clients.prodmgmt.ConfiguredPartItem
getConfigurationItem, getOverride, getParentItem, getPathOccurrence, getUsesOccurrence, setConfigurationItem, setOverride, setParentItem, setPathOccurrence, setProductConfiguration, setUsesOccurrence
 
Methods inherited from class wt.clients.prodmgmt.PartItem
create, delete, dispatchRefresh, getBuildRule, getConfigSpecItem, getConfigurationSpec, getCreatedByPersonName, getCreationDate, getDefaultUnit, getDisplayIdentity, getExplorer, getFolder, getIdentity, getIteration, getIterationIdentifier, getLastUpdated, getLastUpdatedDate, getLifecycleName, getLifeCycleTemplateRef, getLocation, getModifiedByPersonName, getName, getNumber, getOrganization, getOrganizationUniqueId, getPart, getReferences, getResource, getRevision, getSource, getState, getStatusText, getTeamTemplateName, getTeamTemplateRef, getType, getUniqueIdentity, getUsedBy, getUsesInterfaceList, getVersion, getView, getViewName, init, isModified, isNew, isOccurrenceMode, setConfigSpecItem, setConfigurationSpec, setDefaultUnit, setExplorer, setFields, setFolder, setIteration, setLifeCycleTemplateRef, setLocation, setModified, setName, setNew, setNumber, setOrganization, setPart, setPartSimply, setRevision, setSource, setState, setStatusText, setTeamTemplateRef, setType, setView, setViewName, toString, update
 
Methods inherited from class wt.clients.beans.explorer.WTBusinessObject
getAttributeValue, getAttributeValue, getContents, getObject, getOpenIcon, getStandardIcon, setIdentity, setObject, setObject, setStandardIcon, setStandardIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

InstanceItem instance

snPartInstance

WTSerialNumberedPartInstance snPartInstance

snMapping

SerialNumberMapping snMapping
Constructor Detail

AllocatedPartItem

public AllocatedPartItem()
                  throws WTException
Constructs a new AllocatedPartItem.

Throws:
WTException

AllocatedPartItem

public AllocatedPartItem(WTPart part)
Constructs a new AllocatedPartItem.

Parameters:
part - the contained wt.part.WTPart.
See Also:
WTPart
Method Detail

setInstanceItem

public void setInstanceItem(InstanceItem instance)
Sets the product configuration for this product.


setProductInstance

public void setProductInstance(WTProductInstance2 instance)
Sets the product configuration for this product.


getInstanceItem

public InstanceItem getInstanceItem()
Returns the product configuration for this product.


setSNPartInstance

public void setSNPartInstance(WTSerialNumberedPartInstance sn_part_instance)

getSNPartInstance

public WTSerialNumberedPartInstance getSNPartInstance()

setSNMapping

public void setSNMapping(SerialNumberMapping sn_mapping)

getSNMapping

public SerialNumberMapping getSNMapping()

getUses

public Explorable[] getUses()
                     throws WTException
Returns an array of Explorable objects this PartItem uses.

Specified by:
getUses in interface Explorable
Overrides:
getUses in class ConfiguredPartItem
Returns:
an array of Explorable objects this PartItem uses.
Throws:
WTException