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 voiddontGoDeeper()Prevents the visitor from visiting any children of the object currently visitedRgetResult()Gets the result of the visit/traversal.booleanisContinue()Checks if the visit/traversal should continuebooleanisDontGoDeeper()Checks if the visit/traversal has been stopped from visiting children of the currently visited objectbooleanisStopped()Checks if the visit/traversal has been stoppedvoidstop()Stops the visit/traversalvoidstop(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:
dontGoDeeperin interfaceIVisit<R>
-
isStopped
public boolean isStopped()
Checks if the visit/traversal has been stopped- Returns:
trueif the visit/traversal has been stopped
-
isContinue
public boolean isContinue()
Checks if the visit/traversal should continue- Returns:
trueif 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:
trueif 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 remainsnullif visit/traversal has ended in any other way- Returns:
- value that should be returned to the method that initiated the visit/traversal
-
-