java.lang.Object
org.apache.wicket.util.visit.ClassVisitFilter
- All Implemented Interfaces:
IVisitFilter
IVisitFilter
that restricts visitors to only visiting objects of the specified class- Author:
- igor.vaynberg
-
Field Summary
Fields inherited from interface org.apache.wicket.util.visit.IVisitFilter
ANY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
visitChildren
(Object object) Controls whether or not theobject
's children will be visitedboolean
visitObject
(Object object) Controls whether or not theobject
will be visited
-
Constructor Details
-
ClassVisitFilter
Constructor- Parameters:
clazz
- class of objects that visitors should be restricted to
-
-
Method Details
-
visitChildren
Controls whether or not theobject
's children will be visited- Specified by:
visitChildren
in interfaceIVisitFilter
- Returns:
true
if the object's children should be visited
-
visitObject
Controls whether or not theobject
will be visited- Specified by:
visitObject
in interfaceIVisitFilter
- Returns:
true
if the object should be visited
-