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
Fields inherited from interface org.apache.wicket.util.visit.IVisitFilter |
ANY |
Method Summary |
boolean |
visitChildren(Object object)
Controls whether or not the object 's children will be visited |
boolean |
visitObject(Object object)
Controls whether or not the object will be visited |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassVisitFilter
public ClassVisitFilter(Class<?> clazz)
- Constructor
- Parameters:
clazz
- class of objects that visitors should be restricted to
visitChildren
public boolean visitChildren(Object object)
- Controls whether or not the
object
's children will be visited
- Specified by:
visitChildren
in interface IVisitFilter
- Returns:
true
if the object's children should be visited
visitObject
public boolean visitObject(Object object)
- Controls whether or not the
object
will be visited
- Specified by:
visitObject
in interface IVisitFilter
- Returns:
true
if the object should be visited
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.