org.mockcentral.editor.nodes.expectation.part
Class ThrowableDefinitionValidator

java.lang.Object
  extended by org.mockcentral.editor.nodes.expectation.part.ThrowableDefinitionValidator
All Implemented Interfaces:
IMockCentralDialogInputValidator

public class ThrowableDefinitionValidator
extends java.lang.Object

An extension of the ClassDefinitionValidator which additionally validates that the class supplied is a Throwable.


Constructor Summary
ThrowableDefinitionValidator()
           
 
Method Summary
 java.util.List<NodeProblem> isValid(java.lang.Object... input)
          Returns a list of NodeProblem objects generated during validation of the supplied input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableDefinitionValidator

public ThrowableDefinitionValidator()
Method Detail

isValid

public java.util.List<NodeProblem> isValid(java.lang.Object... input)
Description copied from interface: IMockCentralDialogInputValidator
Returns a list of NodeProblem objects generated during validation of the supplied input. If empty, the input can be assumed valid.

Specified by:
isValid in interface IMockCentralDialogInputValidator
Parameters:
input - the user input.
Returns:
a list of NodeProblem objects generated during validation of the supplied input.