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
IVisitFilterthat 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 booleanvisitChildren(Object object)Controls whether or not theobject's children will be visitedbooleanvisitObject(Object object)Controls whether or not theobjectwill 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:
visitChildrenin interfaceIVisitFilter- Returns:
trueif the object's children should be visited
-
visitObject
public boolean visitObject(Object object)
Controls whether or not theobjectwill be visited- Specified by:
visitObjectin interfaceIVisitFilter- Returns:
trueif the object should be visited
-
-