Class NotDetachedModelChecker
- java.lang.Object
-
- org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
-
- org.apache.wicket.core.util.objects.checker.NotDetachedModelChecker
-
- All Implemented Interfaces:
IObjectChecker
public class NotDetachedModelChecker extends AbstractObjectChecker
An implementation ofIObjectChecker
that returns a failure result when the checked object is aLoadableDetachableModel
and it is model object is still attached.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
-
-
Constructor Summary
Constructors Constructor Description NotDetachedModelChecker()
Constructor.NotDetachedModelChecker(List<Class<?>> exclusions)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
NotDetachedModelChecker
public NotDetachedModelChecker()
Constructor. Checks all passed objects.
-
NotDetachedModelChecker
public NotDetachedModelChecker(List<Class<?>> exclusions)
Constructor. Checks objects which types are not excluded.- Parameters:
exclusions
- a list of types which should not be checked
-
-
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 classAbstractObjectChecker
- Parameters:
obj
- the object to check- Returns:
- the
result
of the specific check
-
-