org.apache.wicket.core.util.objects.checker
Class IObjectChecker.Result

java.lang.Object
  extended by org.apache.wicket.core.util.objects.checker.IObjectChecker.Result
Enclosing interface:
IObjectChecker

public static class IObjectChecker.Result
extends Object

Represents the result of a check.


Nested Class Summary
static class IObjectChecker.Result.Status
           
 
Field Summary
 Throwable cause
          An optional cause of a failure.
 String reason
          The reason why a check succeeded/failed.
 IObjectChecker.Result.Status status
          The status of the check.
static IObjectChecker.Result SUCCESS
          A singleton that can be used for successful checks
 
Constructor Summary
IObjectChecker.Result(IObjectChecker.Result.Status status, String reason)
          Constructor.
IObjectChecker.Result(IObjectChecker.Result.Status status, String reason, Throwable cause)
          Constructor.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUCCESS

public static final IObjectChecker.Result SUCCESS
A singleton that can be used for successful checks


status

public final IObjectChecker.Result.Status status
The status of the check.


reason

public final String reason
The reason why a check succeeded/failed. Mandatory in failure case.


cause

public final Throwable cause
An optional cause of a failure.

Constructor Detail

IObjectChecker.Result

public IObjectChecker.Result(IObjectChecker.Result.Status status,
                             String reason)
Constructor.

Parameters:
status - the status of the result
reason - the reason of successful/failed check

IObjectChecker.Result

public IObjectChecker.Result(IObjectChecker.Result.Status status,
                             String reason,
                             Throwable cause)
Constructor.

Parameters:
status - the status of the result
reason - the reason of successful/failed check
cause - the cause of a failure. Optional.
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.