Package org.apache.wicket.util.visit
Class ClassVisitFilter
- java.lang.Object
-
- org.apache.wicket.util.visit.ClassVisitFilter
-
- All Implemented Interfaces:
IVisitFilter
public class ClassVisitFilter extends Object implements 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
Constructors Constructor Description ClassVisitFilter(Class<?> clazz)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
ClassVisitFilter
public ClassVisitFilter(Class<?> clazz)
Constructor- Parameters:
clazz
- class of objects that visitors should be restricted to
-
-
Method Detail
-
visitChildren
public boolean visitChildren(Object object)
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
public boolean visitObject(Object object)
Controls whether or not theobject
will be visited- Specified by:
visitObject
in interfaceIVisitFilter
- Returns:
true
if the object should be visited
-
-