|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.part.MultilevelBomCompareVisitor
This visitor is used to write XML data for the Multilevel BOM Compare
report using a DocumentHandler
.
Supported API: true
Extendable: true
Constructor Summary | |
MultilevelBomCompareVisitor(DocumentHandler aDocumentHandler,
Locale aLocale)
Supported API: false |
Method Summary | |
void |
addToCache(Persistable[] partLink)
Supported API: true |
boolean |
areSame(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
boolean |
areSame(WTPartUsageLink link1,
WTPartUsageLink link2)
|
boolean |
areSamePart(Persistable object1,
Persistable object2)
|
boolean |
cacheIsEmpty()
Supported API: false |
void |
completeVisit(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endComparisonNodeElement(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endLevel()
Supported API: true |
void |
endPartElement(WTPart part,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endPartMasterElement(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endPartMasterElement(WTPartMaster partMaster,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endPartVersionElement(Persistable[] link,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
endSpecElement(ConfigSpec spec,
int index)
|
void |
endSpecElement(WTPartConfigSpec spec,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
(package private) boolean |
getIdenticalProductMastersAreSame()
|
private QueryKey |
getKey(Persistable[] partLink)
|
boolean |
hasPath(WTPartUsageLink usageLink)
|
boolean |
haveCompatiblePaths(Persistable[] link1,
Persistable[] link2)
|
boolean |
havePaths(Persistable[] link1,
Persistable[] link2)
|
boolean |
lookDeeper(WTPart part1,
WTPart part2)
Checks to see if we should look deeper for differences. |
Persistable[] |
matchToCache(Persistable[] partLink)
Looks in the hash table for the part that matches the part passed in as an agrument. |
void |
output(String purpose,
Persistable[] link)
|
void |
postponeComparisonNodeElement(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
Enumeration |
removeFromCache()
Supported API: false |
void |
removeFromCache(Persistable[] link)
Supported API: false |
(package private) void |
setIdenticalProductMastersAreSame(boolean identicalProductMastersAreSame)
|
void |
startComparisonNodeElement(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
startLevel()
Supported API: true |
void |
startPartElement(WTPart part,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
startPartElement(WTProductConfiguration configuration,
int index)
|
void |
startPartElement(WTProductInstance2 instance,
int index)
|
void |
startPartMasterElement(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
startPartMasterElement(WTPartMaster partMaster,
int index)
Output the XML tag for a part master. |
void |
startPartVersionElement(Persistable[] link,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
startSpecElement(ConfigSpec spec,
int index)
|
void |
startSpecElement(WTPartConfigSpec spec,
int index)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
visit(Persistable[] link1,
Persistable[] link2)
If the two parts are different or the result of comparing their subparts is not empty, then output the XML for these two parts and their sub results. |
void |
visitCompatiblePaths(Persistable[] link1,
Persistable[] link2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Stack matchingHashtableStack
private Hashtable visitedHashtable
private Hashtable matchingHashtable
private Stack pendingElementStartStack
private Stack pendingElementEndStack
private DocumentHandler myDocumentHandler
private Locale myLocale
private static final String AMOUNT
private static final String BASELINE_NAME
private static final String CDATA
private static final String COMPARISON_NODE
private static final String CONFIGURATION_ITEM_NAME
private static final String DISPLAY_NAME
private static final String EFFECTIVITY_DATE
private static final String EFFECTIVITY_TYPE
private static final String ENCODING
private static final String ERROR
private static final String INCORPORATION_DATE
private static final String IS_PLANNING_DATE
private static final String ITERATION
private static final String NAME
private static final String NUMBER
private static final String OID
private static final String PART_FRAGMENT
private static final String PART_MASTER
private static final String PART_VERSION_FRAGMENT
private static final String QUANTITY
private static final String SERIAL_NUMBER
private static final String SPEC_FRAGMENT
private static final String STATE
private static final String TYPE
private static final String UNIT
private static final String VERSION
private static final String VIEW
private static final String WORKING_INCLUDED
private static final boolean VERBOSE
private DecimalFormat quantityFormat
private boolean identicalProductMastersAreSame
Constructor Detail |
public MultilevelBomCompareVisitor(DocumentHandler aDocumentHandler, Locale aLocale)
aDocumentHandler
- aLocale
- Method Detail |
public boolean lookDeeper(WTPart part1, WTPart part2)
part1
- part2
-
WTPartMaster
public Persistable[] matchToCache(Persistable[] partLink)
partLink
-
public void visit(Persistable[] link1, Persistable[] link2) throws SAXException, WTException
link1
- link2
-
SAXException
WTException
public void addToCache(Persistable[] partLink)
partLink
- public void startLevel()
public void removeFromCache(Persistable[] link)
link
- public Enumeration removeFromCache()
public boolean cacheIsEmpty()
public void endLevel()
public void completeVisit(Persistable[] link1, Persistable[] link2) throws SAXException
link1
- link2
-
SAXException
public void startComparisonNodeElement(Persistable[] link1, Persistable[] link2) throws SAXException, WTException
link1
- link2
-
SAXException
WTException
public void endComparisonNodeElement(Persistable[] link1, Persistable[] link2) throws SAXException
link1
- link2
-
SAXException
public void postponeComparisonNodeElement(Persistable[] link1, Persistable[] link2)
link1
- link2
- public boolean areSame(Persistable[] link1, Persistable[] link2)
link1
- link2
-
public void startPartMasterElement(Persistable[] link1, Persistable[] link2) throws SAXException
link1
- link2
-
SAXException
public void endPartMasterElement(Persistable[] link1, Persistable[] link2) throws SAXException
link1
- link2
-
SAXException
public void startPartVersionElement(Persistable[] link, int index) throws SAXException, WTException
link
- index
-
SAXException
WTException
public void endPartVersionElement(Persistable[] link, int index) throws SAXException
link
- index
-
SAXException
public void startPartElement(WTPart part, int index) throws SAXException, WTException
part
- index
-
SAXException
WTException
public void endPartElement(WTPart part, int index) throws SAXException
part
- index
-
SAXException
public void startSpecElement(WTPartConfigSpec spec, int index) throws SAXException
spec
- index
-
SAXException
public void endSpecElement(WTPartConfigSpec spec, int index) throws SAXException
spec
- index
-
SAXException
public void startPartMasterElement(WTPartMaster partMaster, int index) throws SAXException, WTException
partMaster
- index
-
SAXException
WTException
public void endPartMasterElement(WTPartMaster partMaster, int index) throws SAXException
partMaster
- index
-
SAXException
private QueryKey getKey(Persistable[] partLink)
public void startPartElement(WTProductConfiguration configuration, int index) throws SAXException, WTException
SAXException
WTException
public void startPartElement(WTProductInstance2 instance, int index) throws SAXException, WTException
SAXException
WTException
public void output(String purpose, Persistable[] link)
public boolean havePaths(Persistable[] link1, Persistable[] link2)
public boolean haveCompatiblePaths(Persistable[] link1, Persistable[] link2)
public void visitCompatiblePaths(Persistable[] link1, Persistable[] link2) throws SAXException, WTException
SAXException
WTException
public boolean hasPath(WTPartUsageLink usageLink)
public boolean areSame(WTPartUsageLink link1, WTPartUsageLink link2)
public boolean areSamePart(Persistable object1, Persistable object2) throws WTException
WTException
boolean getIdenticalProductMastersAreSame()
void setIdenticalProductMastersAreSame(boolean identicalProductMastersAreSame)
public void startSpecElement(ConfigSpec spec, int index) throws SAXException
SAXException
public void endSpecElement(ConfigSpec spec, int index) throws SAXException
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |