wt.clients.prodmgmt
Class ConfiguredUsageItem

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

public class ConfiguredUsageItem
extends UsageItem

ConfiguredUsageItem is a model class for manipulating WTPartUsageLinks.

ConfiguredUsageItem 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
private  PartUsesOccurrence occurrence
           
 
Fields inherited from class wt.clients.prodmgmt.UsageItem
df
 
Constructor Summary
ConfiguredUsageItem()
          Create an empty usage item.
ConfiguredUsageItem(PartItem uses, PartItem usedBy)
          Create a usage item between the specified part items.
ConfiguredUsageItem(PartItem uses, PartItem usedBy, WTPartUsageLink usage_link)
          Create a usage item between the specified part items using the specified usage link.
ConfiguredUsageItem(PartItem uses, PartItem usedBy, WTPartUsageLink usage_link, PartUsesOccurrence occurrence)
          Create a usage item between the specified part items using the specified usage link.
 
Method Summary
 PartUsesOccurrence getOccurrence()
          Return the occurrenct of the uses part item
 String getOccurrenceName()
          Return the view name of the uses part item
 void setOccurrence(PartUsesOccurrence occurrence)
          Sett the view of the uses part item
 
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

occurrence

private PartUsesOccurrence occurrence
Constructor Detail

ConfiguredUsageItem

public ConfiguredUsageItem()
Create an empty usage item.


ConfiguredUsageItem

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

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

ConfiguredUsageItem

public ConfiguredUsageItem(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

ConfiguredUsageItem

public ConfiguredUsageItem(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
Method Detail

setOccurrence

public void setOccurrence(PartUsesOccurrence occurrence)
Sett the view of the uses part item

Returns:
the view of the uses part item

getOccurrence

public PartUsesOccurrence getOccurrence()
Return the occurrenct of the uses part item

Returns:
the occurrence of the uses part item

getOccurrenceName

public String getOccurrenceName()
Return the view name of the uses part item

Returns:
the view name of the uses part item