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 1090706 2011-04-09 23:15:28Z hboutemy $
Author:
Trygve Laugstøl

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

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

getWarnings

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

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


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.