wt.doc
Class DocumentContentStructureVisitor

java.lang.Object
  extended bywt.visitor.VisitorAdapter
      extended bywt.doc.DocumentContentStructureVisitor
All Implemented Interfaces:
Serializable, Visitor

public class DocumentContentStructureVisitor
extends VisitorAdapter
implements Serializable

Collects all of the primary content ApplicationData of the documents in the navigation of the structure. This is used to download all primary files from a structure so content items of type URL are ignored since they cannot be download as file content.

Supported API: true

Extendable: false

See Also:
ApplicationData, Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private  Vector structure
           
 
Constructor Summary
DocumentContentStructureVisitor()
          

Supported API: false
 
Method Summary
 Vector getStructure()
          Gets the value of the attribute: structure; The primary content URLs from the structure.
 boolean visit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited)
          When visiting a node add the primary content ApplicationData to the vector if the node has not been previously visited.
 
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

structure

private Vector structure
Constructor Detail

DocumentContentStructureVisitor

public DocumentContentStructureVisitor()


Supported API: false

Method Detail

getStructure

public Vector getStructure()
Gets the value of the attribute: structure; The primary content URLs from the 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 primary content ApplicationData 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
See Also:
ApplicationData