java.lang.Object
org.apache.wicket.util.visit.Visit<R>
- Type Parameters:
R
- type of object that should be returned by the visit/traversal
- All Implemented Interfaces:
IVisit<R>
Implementation of
IVisit
used by traversal algorithms- Author:
- igor.vaynberg
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prevents the visitor from visiting any children of the object currently visitedGets the result of the visit/traversal.boolean
Checks if the visit/traversal should continueboolean
Checks if the visit/traversal has been stopped from visiting children of the currently visited objectboolean
Checks if the visit/traversal has been stoppedvoid
stop()
Stops the visit/traversalvoid
Stops the visit/traversal and returnsresult
-
Constructor Details
-
Visit
public Visit()
-
-
Method Details
-
stop
Stops the visit/traversal -
stop
Stops the visit/traversal and returnsresult
-
dontGoDeeper
Prevents the visitor from visiting any children of the object currently visited- Specified by:
dontGoDeeper
in interfaceIVisit<R>
-
isStopped
Checks if the visit/traversal has been stopped- Returns:
true
if the visit/traversal has been stopped
-
isContinue
Checks if the visit/traversal should continue- Returns:
true
if the visit/traversal should continue
-
isDontGoDeeper
Checks if the visit/traversal has been stopped from visiting children of the currently visited object- Returns:
true
if the visit/traversal should not visit children of the currently visited object
-
getResult
Gets the result of the visit/traversal. This value is set usingstop(Object)
or remainsnull
if visit/traversal has ended in any other way- Returns:
- value that should be returned to the method that initiated the visit/traversal
-