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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPrevents the visitor from visiting any children of the object currently visitedGets the result of the visit/traversal.booleanChecks if the visit/traversal should continuebooleanChecks if the visit/traversal has been stopped from visiting children of the currently visited objectbooleanChecks if the visit/traversal has been stoppedvoidstop()Stops the visit/traversalvoidStops 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:
dontGoDeeperin interfaceIVisit<R>
-
isStopped
Checks if the visit/traversal has been stopped- Returns:
trueif the visit/traversal has been stopped
-
isContinue
Checks if the visit/traversal should continue- Returns:
trueif the visit/traversal should continue
-
isDontGoDeeper
Checks if the visit/traversal has been stopped from visiting children of the currently visited object- Returns:
trueif 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 remainsnullif visit/traversal has ended in any other way- Returns:
- value that should be returned to the method that initiated the visit/traversal
-