wt.clients.prodmgmt
Class AllocatedUsageItem

java.lang.Object
  extended bywt.clients.prodmgmt.UsageItem
      extended bywt.clients.prodmgmt.ConfiguredUsageItem
          extended bywt.clients.prodmgmt.AllocatedUsageItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder, Updateable

public class AllocatedUsageItem
extends ConfiguredUsageItem

AllocatedUsageItem is a model class for manipulating WTPartUsageLinks.

AllocatedUsageItem implements the wt.explorer.Explorable interface to allow for use in the WTExplorer.

It contains many methods which it delegates to the contained uses Part Item to allow for easy integration with the PartExplorer.



Supported API: false

Extendable: false

See Also:
WTExplorer, PartItem, PartExplorer, WTPartUsageLink

Field Summary
(package private)  String serialNumber
           
 
Fields inherited from class wt.clients.prodmgmt.ConfiguredUsageItem
 
Fields inherited from class wt.clients.prodmgmt.UsageItem
df
 
Constructor Summary
AllocatedUsageItem(PartItem uses, PartItem usedBy)
          Create a usage item between the specified part items.
AllocatedUsageItem(PartItem uses, PartItem usedBy, WTPartUsageLink usage_link)
          Create a usage item between the specified part items using the specified usage link.
AllocatedUsageItem(PartItem uses, PartItem usedBy, WTPartUsageLink usage_link, PartUsesOccurrence occurrence)
          Create a usage item between the specified part items using the specified usage link.
AllocatedUsageItem(PartItem uses, PartItem usedBy, WTPartUsageLink usage_link, PartUsesOccurrence occurrence, String serial_number)
          Create a usage item between the specified part items using the specified usage link.
 
Method Summary
 String getSerialNumber()
          Return the serial number the uses part item
 void setSerialNumber(String serial_number)
          Set the serial number of the uses part item
 
Methods inherited from class wt.clients.prodmgmt.ConfiguredUsageItem
getOccurrence, getOccurrenceName, setOccurrence
 
Methods inherited from class wt.clients.prodmgmt.UsageItem
create, delete, getContents, getDecimalFormat, getId, getIdentity, getLastUpdatedDate, getLineNumber, getLineNumberString, getName, getNumber, getObject, getOpenIcon, getOrganizationUniqueId, getPartUsageLink, getQuantity, getQuantityString, getReferenceDesignator, getRevision, getStandardIcon, getState, getType, getUniqueIdentity, getUnitName, getUnits, getUsedBy, getUses, getUsesPart, getVersion, getView, getViewName, isModified, setLineNumber, setModified, setObject, setPartUsageLink, setQuantity, setUnit, setUsedBy, setUses, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialNumber

String serialNumber
Constructor Detail

AllocatedUsageItem

public AllocatedUsageItem(PartItem uses,
                          PartItem usedBy)
Create a usage item between the specified part items.

Parameters:
uses - the uses part
usedBy - the usedBy part

AllocatedUsageItem

public AllocatedUsageItem(PartItem uses,
                          PartItem usedBy,
                          WTPartUsageLink usage_link)
Create a usage item between the specified part items using the specified usage link.

Parameters:
uses - the uses part
usedBy - the usedBy part
usage_link - the actual usage link

AllocatedUsageItem

public AllocatedUsageItem(PartItem uses,
                          PartItem usedBy,
                          WTPartUsageLink usage_link,
                          PartUsesOccurrence occurrence)
Create a usage item between the specified part items using the specified usage link.

Parameters:
uses - the uses part
usedBy - the usedBy part
usage_link - the actual usage link
occurrence - the part occurrence

AllocatedUsageItem

public AllocatedUsageItem(PartItem uses,
                          PartItem usedBy,
                          WTPartUsageLink usage_link,
                          PartUsesOccurrence occurrence,
                          String serial_number)
Create a usage item between the specified part items using the specified usage link.

Parameters:
uses - the uses part
usedBy - the usedBy part
usage_link - the actual usage link
occurrence - the part occurrence
Method Detail

getSerialNumber

public String getSerialNumber()
Return the serial number the uses part item

Returns:
the serial number of the uses part item

setSerialNumber

public void setSerialNumber(String serial_number)
Set the serial number of the uses part item

Parameters:
serial_number - the serial number.