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 Object

Encapsulates the result of a validation.

Version:
$Id: ValidationResult.java 1090706 2011-04-09 23:15:28Z hboutemy $
Author:
Trygve Laugstøl

Constructor Summary
ValidationResult()
           
 
Method Summary
 List<String> getErrors()
          Return the list of errors.
 List<String> 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 List<String> getErrors()
Return the list of errors.

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

getWarnings

public List<String> getWarnings()
Return the list of warnings.

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


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.