Package org.apache.wicket.util.visit
Class Visit<R>
- java.lang.Object
-
- org.apache.wicket.util.visit.Visit<R>
-
-
Constructor Summary
Constructors Constructor Description Visit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dontGoDeeper()
Prevents the visitor from visiting any children of the object currently visitedR
getResult()
Gets the result of the visit/traversal.boolean
isContinue()
Checks if the visit/traversal should continueboolean
isDontGoDeeper()
Checks if the visit/traversal has been stopped from visiting children of the currently visited objectboolean
isStopped()
Checks if the visit/traversal has been stoppedvoid
stop()
Stops the visit/traversalvoid
stop(R result)
Stops the visit/traversal and returnsresult
-
-
-
Constructor Detail
-
Visit
public Visit()
-
-
Method Detail
-
dontGoDeeper
public void dontGoDeeper()
Prevents the visitor from visiting any children of the object currently visited- Specified by:
dontGoDeeper
in interfaceIVisit<R>
-
isStopped
public boolean isStopped()
Checks if the visit/traversal has been stopped- Returns:
true
if the visit/traversal has been stopped
-
isContinue
public boolean isContinue()
Checks if the visit/traversal should continue- Returns:
true
if the visit/traversal should continue
-
isDontGoDeeper
public boolean 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
public R 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
-
-