org.apache.maven.doxia.book.services.validation
Class ValidationResult

java.lang.Object
  extended by org.apache.maven.doxia.book.services.validation.ValidationResult

public class ValidationResult
extends java.lang.Object

Encapsulates the result of a validation.

Version:
$Id: ValidationResult.java 638290 2008-03-18 09:45:22Z bentmann $
Author:
Trygve Laugstøl

Constructor Summary
ValidationResult()
           
 
Method Summary
 java.util.List getErrors()
          Return the list of errors.
 java.util.List getWarnings()
          Return the list of warnings.
 boolean isAllOk()
          Checks if there were any errors or warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResult

public ValidationResult()
Method Detail

isAllOk

public boolean isAllOk()
Checks if there were any errors or warnings.

Returns:
True if there were no errors or warnings.

getErrors

public java.util.List getErrors()
Return the list of errors.

Returns:
List. A new ArrayList is constructed if the current List is null.

getWarnings

public java.util.List getWarnings()
Return the list of warnings.

Returns:
List. A new ArrayList is constructed if the current List is null.