org.qedeq.kernel.bo.service.basis
Class ModuleServicePluginResults

java.lang.Object
  extended by org.qedeq.kernel.bo.service.basis.ModuleServicePluginResults

public class ModuleServicePluginResults
extends java.lang.Object

Holds the results from a plugin execution.

Author:
Michael Meyling

Constructor Summary
ModuleServicePluginResults()
          Creates a new result container.
 
Method Summary
 void addErrors(SourceFileExceptionList errors)
          Add errors.
 void addWarnings(SourceFileExceptionList warnings)
          Add warnings.
 void clear()
          Clear all warnings and errors.
 SourceFileExceptionList getErrors()
          Get list of all errors.
 SourceFileExceptionList getWarnings()
          Get list of all warnings.
 boolean hasErrors()
          Are there any errors?
 boolean hasWarnings()
          Are there any warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleServicePluginResults

public ModuleServicePluginResults()
Creates a new result container.

Method Detail

clear

public void clear()
Clear all warnings and errors.


getErrors

public SourceFileExceptionList getErrors()
Get list of all errors.

Returns:
Error list. Is never null.

addErrors

public void addErrors(SourceFileExceptionList errors)
Add errors.

Parameters:
errors - Add these errors.

getWarnings

public SourceFileExceptionList getWarnings()
Get list of all warnings.

Returns:
Warnings list. Is never null.

addWarnings

public void addWarnings(SourceFileExceptionList warnings)
Add warnings.

Parameters:
warnings - Add these warnings.

hasErrors

public boolean hasErrors()
Are there any errors?

Returns:
Errors exist.

hasWarnings

public boolean hasWarnings()
Are there any warnings.

Returns:
Warnings exist.


Copyright © 2014. All Rights Reserved.