org.codehaus.spice.configkit
Class ValidationResult

java.lang.Object
  |
  +--org.codehaus.spice.configkit.ValidationResult

public class ValidationResult
extends Object

Result of validating a document against a schema. The result indicates whether validation was successful, any exception throws by validator and any ValidationIssues that were reported.

Version:
$Revision: 1.1 $ $Date: 2003/12/03 03:19:28 $
Author:
Peter Donald
, Peter Royal

Constructor Summary
ValidationResult(ValidateException exception, ValidationIssue[] issues)
          Create a ValidationResult.
 
Method Summary
 ValidateException getException()
          Return the exception thrown if validation not successful.
 ValidationIssue[] getIssues()
          Return the issues that were reported during validation.
 boolean isValid()
          Return true if validation successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResult

public ValidationResult(ValidateException exception,
                        ValidationIssue[] issues)
Create a ValidationResult.

Parameters:
exception - the exception thrown if validation failed
issues - the issues that were reported during validation.
Method Detail

isValid

public boolean isValid()
Return true if validation successful. false otherwise.

Returns:
true if validation successful. false otherwise.

getException

public ValidateException getException()
Return the exception thrown if validation not successful.

Returns:
the exception thrown if validation not successful.

getIssues

public ValidationIssue[] getIssues()
Return the issues that were reported during validation.

Returns:
the issues that were reported during validation.


Copyright © 2003 Codehaus. All Rights Reserved.