org.apache.wicket.core.util.objects.checker
Class DifferentPageChecker

java.lang.Object
  extended by org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
      extended by org.apache.wicket.core.util.objects.checker.DifferentPageChecker
All Implemented Interfaces:
IObjectChecker

public class DifferentPageChecker
extends AbstractObjectChecker

An implementation of IObjectChecker that returns a failure result when the checked object is a second Page instance in the component tree. The first checked page instance is assumed to be the component tree root. Any other page instance checked by the same checker is a referenced page by a component in the tree.

Since:
6.17.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
 
Constructor Summary
DifferentPageChecker()
           
 
Method Summary
 IObjectChecker.Result doCheck(Object obj)
          The implementations should make the specific check on the object.
 
Methods inherited from class org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
check, getExclusions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferentPageChecker

public DifferentPageChecker()
Method Detail

doCheck

public IObjectChecker.Result doCheck(Object obj)
Description copied from class: AbstractObjectChecker
The implementations should make the specific check on the object.

Overrides:
doCheck in class AbstractObjectChecker
Parameters:
obj - the object to check
Returns:
the result of the specific check


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.