wt.part
Class MultilevelWhereUsedVisitor

java.lang.Object
  extended bywt.visitor.VisitorAdapter
      extended bywt.part.MultilevelWhereUsedVisitor
All Implemented Interfaces:
Serializable, Visitor

public class MultilevelWhereUsedVisitor
extends VisitorAdapter
implements Serializable

This visitor is used to write XML data for the Multilevel Where Usedreport using a DocumentHandler.

Supported API: true

Extendable: true

See Also:
Serialized Form

Field Summary
private static String AMOUNT
           
private static String BASELINE_NAME
           
private static String CDATA
           
private static String CLASSNAME
           
private static String CONFIG_SPEC
           
private static String CONFIGURATION_ITEM_NAME
           
private static String DISPLAY_NAME
           
private static String EFFECTIVITY_DATE
           
private static String EFFECTIVITY_TYPE
           
private static String ERROR
           
private static String INCORPORATION_DATE
           
private static String IS_PLANNING_DATE
           
private static String ITERATION
           
private  DocumentHandler myDocumentHandler
           
private  Locale myLocale
           
private static String NAME
           
private static int noPreviousLevel
           
private static String NUMBER
           
private static String OID
           
private static String PART
           
private static String PART_MASTER
           
private  int previousLevel
           
private static String QUANTITY
           
private  DecimalFormat quantityFormat
           
private static String RESOURCE
           
private static String SERIAL_NUMBER
           
private static String STATE
           
private static String TYPE
           
private static String UNIT
           
private static boolean VERBOSE
           
private static String VERSION
           
private static String VIEW
           
private static String WORKING_INCLUDED
           
 
Constructor Summary
MultilevelWhereUsedVisitor(DocumentHandler aDocumentHandler, Locale aLocale)
          

Supported API: false
 
Method Summary
 void endProductInstance()
           
 void outputConfigSpec(SerialNumberedConfiguredInstanceConfigSpec spec)
           
 void outputConfigSpec(WTPartConfigSpec spec)
          

Supported API: true
 void outputPart(WTPartMaster partMaster)
          

Supported API: true
 void outputProductInstance(WTProductInstance2 productInstance)
           
 void outputQuantity()
           
 void outputQuantity(WTPartUsageLink partUsageLink)
          

Supported API: true
 void postNavigateWrite()
          

Supported API: false
 void preNavigateWrite()
          

Supported API: false
 void startPart(WTPart part)
          

Supported API: false
 void startProductInstance(WTProductInstance2 productInstance)
           
 boolean visit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited)
          Visit a node.
 
Methods inherited from class wt.visitor.VisitorAdapter
visitLevel, visitLevel
 
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

myDocumentHandler

private DocumentHandler myDocumentHandler

myLocale

private Locale myLocale

AMOUNT

private static final String AMOUNT
See Also:
Constant Field Values

BASELINE_NAME

private static final String BASELINE_NAME
See Also:
Constant Field Values

CONFIG_SPEC

private static final String CONFIG_SPEC
See Also:
Constant Field Values

CONFIGURATION_ITEM_NAME

private static final String CONFIGURATION_ITEM_NAME
See Also:
Constant Field Values

CDATA

private static final String CDATA
See Also:
Constant Field Values

DISPLAY_NAME

private static final String DISPLAY_NAME
See Also:
Constant Field Values

EFFECTIVITY_DATE

private static final String EFFECTIVITY_DATE
See Also:
Constant Field Values

EFFECTIVITY_TYPE

private static final String EFFECTIVITY_TYPE
See Also:
Constant Field Values

ERROR

private static final String ERROR
See Also:
Constant Field Values

INCORPORATION_DATE

private static final String INCORPORATION_DATE
See Also:
Constant Field Values

IS_PLANNING_DATE

private static final String IS_PLANNING_DATE
See Also:
Constant Field Values

ITERATION

private static final String ITERATION
See Also:
Constant Field Values

NAME

private static final String NAME
See Also:
Constant Field Values

NUMBER

private static final String NUMBER
See Also:
Constant Field Values

OID

private static final String OID
See Also:
Constant Field Values

PART

private static final String PART
See Also:
Constant Field Values

PART_MASTER

private static final String PART_MASTER
See Also:
Constant Field Values

QUANTITY

private static final String QUANTITY
See Also:
Constant Field Values

SERIAL_NUMBER

private static final String SERIAL_NUMBER
See Also:
Constant Field Values

STATE

private static final String STATE
See Also:
Constant Field Values

TYPE

private static final String TYPE
See Also:
Constant Field Values

UNIT

private static final String UNIT
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

VERSION

private static final String VERSION
See Also:
Constant Field Values

VIEW

private static final String VIEW
See Also:
Constant Field Values

WORKING_INCLUDED

private static final String WORKING_INCLUDED
See Also:
Constant Field Values

noPreviousLevel

private static final int noPreviousLevel
See Also:
Constant Field Values

previousLevel

private int previousLevel

quantityFormat

private DecimalFormat quantityFormat
Constructor Detail

MultilevelWhereUsedVisitor

public MultilevelWhereUsedVisitor(DocumentHandler aDocumentHandler,
                                  Locale aLocale)


Supported API: false

Parameters:
aDocumentHandler -
aLocale -
Method Detail

outputConfigSpec

public void outputConfigSpec(WTPartConfigSpec spec)
                      throws WTException


Supported API: true

Parameters:
spec -
Throws:
WTException

outputPart

public void outputPart(WTPartMaster partMaster)
                throws WTException


Supported API: true

Parameters:
partMaster -
Throws:
WTException

outputQuantity

public void outputQuantity(WTPartUsageLink partUsageLink)
                    throws WTException


Supported API: true

Parameters:
partUsageLink -
Throws:
WTException

postNavigateWrite

public void postNavigateWrite()
                       throws WTException


Supported API: false

Throws:
WTException

preNavigateWrite

public void preNavigateWrite()
                      throws WTException


Supported API: false

Throws:
WTException

startPart

public void startPart(WTPart part)
               throws WTException


Supported API: false

Parameters:
part -
Throws:
WTException

visit

public boolean visit(Persistable fromNode,
                     Link link,
                     Persistable toNode,
                     int level,
                     boolean previouslyVisited)
              throws WTException
Visit a node. If false is returned, then the node will not be traversed.

Supported API: true

Specified by:
visit in interface Visitor
Overrides:
visit in class VisitorAdapter
Parameters:
fromNode -
link -
toNode -
level -
previouslyVisited -
Returns:
boolean
Throws:
WTException

outputQuantity

public void outputQuantity()
                    throws WTException
Throws:
WTException

outputProductInstance

public void outputProductInstance(WTProductInstance2 productInstance)
                           throws WTException
Throws:
WTException

startProductInstance

public void startProductInstance(WTProductInstance2 productInstance)
                          throws WTException
Throws:
WTException

endProductInstance

public void endProductInstance()
                        throws WTException
Throws:
WTException

outputConfigSpec

public void outputConfigSpec(SerialNumberedConfiguredInstanceConfigSpec spec)
                      throws WTException
Throws:
WTException