wt.doc
Class DocumentStructureVisitor
java.lang.Object
wt.visitor.VisitorAdapter
wt.doc.DocumentStructureVisitor
- All Implemented Interfaces:
- Serializable, Visitor
- public class DocumentStructureVisitor
- extends VisitorAdapter
- implements Serializable
Collects all of the documents in the navigation of the structure.
Supported API: true
Extendable: false
- See Also:
- Serialized Form
Method Summary |
Vector |
getStructure()
Gets the value of the attribute: structure. |
boolean |
visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
When visiting a node add the document to the vector if the node has
not been previously visited. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
structure
private Vector structure
DocumentStructureVisitor
public DocumentStructureVisitor()
Supported API: false
getStructure
public Vector getStructure()
- Gets the value of the attribute: structure.
Supported API: false
- Returns:
- Vector
visit
public boolean visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
throws WTException
- When visiting a node add the document to the vector if the node has
not been previously visited.
Supported API: true
- Specified by:
visit
in interface Visitor
- Overrides:
visit
in class VisitorAdapter
- Parameters:
fromNode
- link
- toNode
- level
- previouslyVisited
-
- Returns:
- boolean
- Throws:
WTException