org.apache.wicket.util.visit
Class ClassVisitFilter

java.lang.Object
  extended by org.apache.wicket.util.visit.ClassVisitFilter
All Implemented Interfaces:
IVisitFilter

public class ClassVisitFilter
extends java.lang.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
ClassVisitFilter(java.lang.Class<?> clazz)
          Constructor
 
Method Summary
 boolean visitChildren(java.lang.Object object)
          Controls whether or not the object's children will be visited
 boolean visitObject(java.lang.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
 

Constructor Detail

ClassVisitFilter

public ClassVisitFilter(java.lang.Class<?> clazz)
Constructor

Parameters:
clazz - class of objects that visitors should be restricted to
Method Detail

visitChildren

public boolean visitChildren(java.lang.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(java.lang.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-2011 Apache Software Foundation. All Rights Reserved.