|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.visitor.VisitorAdapter
wt.visitor.TextOutputVisitor
wt.part.BOMHierarchyVisitor
public abstract class BOMHierarchyVisitor
This class is a Visitor that generates text ouptut for a product structure
hierarchy. The node identity, the usage links' attributes and an indication
of the hierarchal level of the node are included in the text output.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
String |
getMessageKey()
By default this method returns the PART_USAGE message key from partResource. |
protected Object[] |
midVisitParams(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
By deafult midVisitParams returns an array of five values. |
void |
postNavigateWrite()
This method should be called after navigating the structure. |
protected abstract void |
postVisitWrite(int a_level)
This method is called from the visit() method after the node text is written. |
void |
preNavigateWrite()
This method should be called prior to navigating the structure. |
protected abstract void |
preVisitWrite(int a_level)
This method is called from the visit() method before the node text is written. |
boolean |
visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
Visit a node. |
| Methods inherited from class wt.visitor.TextOutputVisitor |
|---|
getPrintWriter, getResourceBundle, printLocalizedMessage, printLocalizedMessage, printLocalizedMessage, setPrintWriter, setPrintWriter, setResourceBundle |
| 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 |
| Method Detail |
|---|
public final boolean visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
throws WTException
visit in interface Visitorvisit in class VisitorAdapterfromNode - link - toNode - level - previouslyVisited -
WTExceptionprotected abstract void preVisitWrite(int a_level)
a_level -
protected Object[] midVisitParams(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
fromNode - link - toNode - level - previouslyVisited -
protected abstract void postVisitWrite(int a_level)
a_level - public void preNavigateWrite()
public void postNavigateWrite()
public String getMessageKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||