wt.part
Class PartUsageInfo

java.lang.Object
  extended bywt.part.PartUsageInfo
All Implemented Interfaces:
Externalizable, Serializable

public class PartUsageInfo
extends Object
implements Externalizable

Represents usage information identified for export by the retrieveBomInformation and retrieveBOMDifferences methods of the WTPartService.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static ApplicationContextServices delegateFactory
           
static long EXTERNALIZATION_VERSION_UID
           
private  boolean hasQuantityChanged
           
protected static long OLD_FORMAT_VERSION_UID
           
private  Quantity orgQuantity
           
private  WTPartUsageLink partUsageLink
           
private  Enumeration refDesAdditions
           
private  Enumeration refDesDeletions
           
private  Vector refDesItems
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  Vector substParts
           
private  Enumeration substPartsAdditions
           
private  Enumeration substPartsCommons
           
private  Enumeration substPartsDeletions
           
 
Constructor Summary
PartUsageInfo()
           
 
Method Summary
protected static Hashtable buildHashtable(WTPart part, boolean ignoreLineNumbers)
           
protected  void clearQuantity()
           
protected  void consolidate(PartUsageInfo info)
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  boolean diffQuantity(PartUsageInfo info)
           
protected  boolean diffRefDes(PartUsageInfo info)
           
protected  boolean diffSubstParts(PartUsageInfo info)
           
protected  Object getKey()
           
 LineNumber getLineNumber()
          Gets the value of the attribute: lineNumber; The line number associated with this part usage.
 Quantity getOrgQuantity()
           
 WTPartMaster getPartMaster()
          Gets the value of the attribute: partMaster; The part master associated with this part usage.
protected  WTPartUsageLink getPartUsageLink()
          Gets the value of the attribute: partUsageLink; The WTPartUsageLink that was used to construct this PartUsageInfo.
 Quantity getQuantity()
          Gets the value of the attribute: quantity; The quantity associated with this part usage.
 Enumeration getRefDesAdditions()
          Gets the value of the attribute: refDesAdditions; Represent the reference designators that are being added to this part usage.
 Enumeration getRefDesDeletions()
          Gets the value of the attribute: refDesDeletions; Represent the reference designators that are being removed to this part usage.
protected  Vector getRefDesItems()
           
protected  Vector getSubstParts()
           
 Enumeration getSubstPartsAdditions()
          Gets the value of the attribute: substPartsAdditions; Represent the substitute parts that are being added to this part usage.
 Enumeration getSubstPartsCommons()
          Gets the value of the attribute: substPartsCommons; Represent the substitute parts that are common to the part usages compared.
 Enumeration getSubstPartsDeletions()
          Gets the value of the attribute: substPartsDeletions; Represent the substitute parts that are being removed to this part usage.
 boolean hasQuantityChanged()
           
protected  boolean hasSamePartMaster(PartUsageInfo info)
           
protected  void initialize(WTPartUsageLink partUsageLink)
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  boolean isDifferent(PartUsageInfo info)
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  void processForAdd()
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  void processForChange()
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  void processForDelete()
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  void processForNoChange()
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
protected  void processForReplace()
          This method is intended to be overriden by a customizer that extends PartUsageInfo.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(PartUsageInfo thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void setRefDesAdditions()
           
protected  void setRefDesDeletions()
           
protected  void setSubstPartsAdditions()
           
protected  void setSubstPartsCommons()
           
protected  void setSubstPartsDeletions()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

partUsageLink

private WTPartUsageLink partUsageLink

refDesAdditions

private Enumeration refDesAdditions

refDesDeletions

private Enumeration refDesDeletions

substPartsAdditions

private Enumeration substPartsAdditions

substPartsDeletions

private Enumeration substPartsDeletions

substPartsCommons

private Enumeration substPartsCommons

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

orgQuantity

private Quantity orgQuantity

hasQuantityChanged

private boolean hasQuantityChanged

refDesItems

private Vector refDesItems

substParts

private Vector substParts

delegateFactory

private static final ApplicationContextServices delegateFactory
Constructor Detail

PartUsageInfo

public PartUsageInfo()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(PartUsageInfo thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getPartUsageLink

protected WTPartUsageLink getPartUsageLink()
Gets the value of the attribute: partUsageLink; The WTPartUsageLink that was used to construct this PartUsageInfo.

Supported API: true

Returns:
WTPartUsageLink

getPartMaster

public WTPartMaster getPartMaster()
Gets the value of the attribute: partMaster; The part master associated with this part usage.

Supported API: true

Returns:
WTPartMaster

getLineNumber

public LineNumber getLineNumber()
Gets the value of the attribute: lineNumber; The line number associated with this part usage. Set to null if the usage is not assigned a line number.

Supported API: true

Returns:
LineNumber

getQuantity

public Quantity getQuantity()
Gets the value of the attribute: quantity; The quantity associated with this part usage. A null quantity indicates no quantity change when used to indicate difference between two versions of a part.

Supported API: true

Returns:
Quantity

getRefDesAdditions

public Enumeration getRefDesAdditions()
Gets the value of the attribute: refDesAdditions; Represent the reference designators that are being added to this part usage. The value is null if there are no reference designators being added.

Supported API: true

Returns:
Enumeration

getRefDesDeletions

public Enumeration getRefDesDeletions()
Gets the value of the attribute: refDesDeletions; Represent the reference designators that are being removed to this part usage. The value is null if there are no reference designators being removed.

Supported API: true

Returns:
Enumeration

getSubstPartsAdditions

public Enumeration getSubstPartsAdditions()
Gets the value of the attribute: substPartsAdditions; Represent the substitute parts that are being added to this part usage. The value is null if there are no substitute parts being added.

Supported API: true

Returns:
Enumeration

getSubstPartsDeletions

public Enumeration getSubstPartsDeletions()
Gets the value of the attribute: substPartsDeletions; Represent the substitute parts that are being removed to this part usage. The value is null if there are no substitute parts being removed.

Supported API: true

Returns:
Enumeration

getSubstPartsCommons

public Enumeration getSubstPartsCommons()
Gets the value of the attribute: substPartsCommons; Represent the substitute parts that are common to the part usages compared. The value is null if there are no substitute parts that are common.

Supported API: true

Returns:
Enumeration

initialize

protected void initialize(WTPartUsageLink partUsageLink)
                   throws WTException
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available if initialization is required for this object once it has been constructed. The customizer must invoke this method for the superclass as its first statement.

Supported API: true

Parameters:
partUsageLink -
Throws:
WTException

consolidate

protected void consolidate(PartUsageInfo info)
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is used to consolidate any attributes defined for a subclass of PartUsageInfo. The customizer must invoke this method for the superclass as its first statement.

Supported API: true

Parameters:
info -

isDifferent

protected boolean isDifferent(PartUsageInfo info)
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available to determine whether this PartUsageInfo is different when compared to the given PartUsageInfo object passed as an arguement. The customizer must invoke this method for the superclass as its first statement.

Supported API: true

Parameters:
info -
Returns:
boolean

processForAdd

protected void processForAdd()
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available should the information stored in this object need to be processed in the event that the part usage is for a BOM item addition. The customizer must invoke this method for the superclass as its first statement.

Supported API: true


processForReplace

protected void processForReplace()
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available should the information stored in this object need to be processed in the event that the part usage is for a BOM item replace. The customizer must invoke this method for the superclass as its first statement.

Supported API: true


processForChange

protected void processForChange()
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available should the information stored in this object need to be processed in the event that the part usage is for a BOM item change. The customizer must invoke this method for the superclass as its first statement.

Supported API: true


processForDelete

protected void processForDelete()
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available should the information stored in this object need to be processed in the event that the part usage is for a BOM item delete. The customizer must invoke this method for the superclass as its first statement.

Supported API: true


processForNoChange

protected void processForNoChange()
This method is intended to be overriden by a customizer that extends PartUsageInfo. The method is available should the information stored in this object need to be processed in the event that the part usage is for a BOM item without changes. The customizer must invoke this method for the superclass as its first statement.

Supported API: true


hasQuantityChanged

public boolean hasQuantityChanged()

getOrgQuantity

public Quantity getOrgQuantity()

clearQuantity

protected void clearQuantity()

getRefDesItems

protected Vector getRefDesItems()

getSubstParts

protected Vector getSubstParts()

setRefDesAdditions

protected void setRefDesAdditions()

setRefDesDeletions

protected void setRefDesDeletions()

setSubstPartsAdditions

protected void setSubstPartsAdditions()

setSubstPartsDeletions

protected void setSubstPartsDeletions()

setSubstPartsCommons

protected void setSubstPartsCommons()

getKey

protected Object getKey()

hasSamePartMaster

protected boolean hasSamePartMaster(PartUsageInfo info)

diffQuantity

protected boolean diffQuantity(PartUsageInfo info)

diffRefDes

protected boolean diffRefDes(PartUsageInfo info)

diffSubstParts

protected boolean diffSubstParts(PartUsageInfo info)

buildHashtable

protected static Hashtable buildHashtable(WTPart part,
                                          boolean ignoreLineNumbers)
                                   throws WTException,
                                          LineNumberUsageException
Throws:
WTException
LineNumberUsageException