Package wt.part
Class PartUsageInfo
java.lang.Object
wt.part.PartUsageInfo
Represents usage information identified for export by the retrieveBomInformation and retrieveBOMDifferences methods
of the WTPartService.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsolidate(PartUsageInfo info) This method is intended to be overriden by a customizer that extends PartUsageInfo.protected booleandiffExpressions(PartUsageInfo info) Compare expressions of given usages if its changed, added, or removed.Gets the value of the attribute: lineNumber; The line number associated with this part usage.getPart()Gets the value of the attribute: part; The part(RoleB object) associated with this part usage.Gets the value of the attribute: partMaster; The part master associated with this part usage.Gets the value of the attribute: quantity; The quantity associated with this part usage.Gets the value of the attribute: refDesAdditions; Represent the reference designators that are being added to this part usage.Gets the value of the attribute: refDesDeletions; Represent the reference designators that are being removed to this part usage.Gets the value of the attribute: softAttributes; Soft attributes and their values defined on the partUsageLink.Gets the value of the attribute: substPartsAdditions; Represent the substitute parts that are being added to this part usage.Gets the value of the attribute: substPartsCommons; Represent the substitute parts that are common to the part usages compared.Gets the value of the attribute: substPartsDeletions; Represent the substitute parts that are being removed to this part usage.booleanReturns true if the current usage link has substitutes, false otherwise.protected voidinitialize(WTPartUsageLink partUsageLink) This method is intended to be overridden by a customizer that extends PartUsageInfo and allows initializing the object once it has been constructed.protected voidinitialize(WTPartUsageLink partUsageLink, WTPart part, Map<String, Object> softAttributes) This method is intended to be overridden by a customizer that extends PartUsageInfo and allows initializing the object once it has been constructed.booleanisDifferent(PartUsageInfo info) This method is intended to be overriden by a customizer that extends PartUsageInfo.voidThis method is intended to be overridden by a customizer that extends PartUsageInfo.voidThis method is intended to be overridden by a customizer that extends PartUsageInfo.voidThis method is intended to be overridden by a customizer that extends PartUsageInfo.voidThis method is intended to be overridden by a customizer that extends PartUsageInfo.voidThis method is intended to be overridden by a customizer that extends PartUsageInfo.voidSets the value of the attribute: part; The part(RoleB object) associated with this part usage.
-
Method Details
-
getPartMaster
Gets the value of the attribute: partMaster; The part master associated with this part usage.
Supported API: true- Returns:
- WTPartMaster
-
getPart
Gets the value of the attribute: part; The part(RoleB object) associated with this part usage.
Supported API: true- Returns:
- WTPart
-
setPart
Sets the value of the attribute: part; The part(RoleB object) associated with this part usage.
Supported API: true -
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
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
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
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
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
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
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
-
getsoftAttributes
Gets the value of the attribute: softAttributes; Soft attributes and their values defined on the partUsageLink. For a multi_valued soft attribute, the value of the returned hash map is a set containing all the values of the soft attribute.
Supported API: true- Returns:
- HashMap
-
initialize
This method is intended to be overridden by a customizer that extends PartUsageInfo and allows initializing the 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
-
initialize
protected void initialize(WTPartUsageLink partUsageLink, WTPart part, Map<String, Object> softAttributes) throws WTExceptionThis method is intended to be overridden by a customizer that extends PartUsageInfo and allows initializing the object once it has been constructed. The customizer must invoke this method for the superclass as its first statement.
Supported API: true- Parameters:
partUsageLink- - part usage link.part- - RoleB iteration of current part usage link.softAttributes- - Soft attributes and their values that reside on the current usage link.- Throws:
WTException
-
consolidate
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
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
public void processForAdd()This method is intended to be overridden 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
public void processForReplace()This method is intended to be overridden 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
public void processForChange()This method is intended to be overridden 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
public void processForDelete()This method is intended to be overridden 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
public void processForNoChange()This method is intended to be overridden 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 -
hasSubstitutes
public boolean hasSubstitutes()Returns true if the current usage link has substitutes, false otherwise.
Supported API: true- Returns:
-
diffExpressions
Compare expressions of given usages if its changed, added, or removed.
Supported API: true- Parameters:
info- - The input PartUsageInfo object to compare with.- Returns:
- true, if the expressions on current object and input usage info object are not identical i.e. if expressions are changed, added or removed; false otherwise .
-