aQute.service.reporter
Interface Report

All Known Subinterfaces:
Reporter
All Known Implementing Classes:
AbstractConsoleApp, Analyzer, BasicAuthentication, BndAuthentication, Builder, ConnectionSettings, DefaultURLConnectionHandler, Env, HeaderReader, HttpsVerification, MavenCommand, MavenDeployCmd, PomParser, Processor, Project, ProjectBuilder, ReplacerAdapter, ReporterAdapter, Run, Signer, Verifier, Workspace

public interface Report

A base interface to represent the state of a work in progress.


Nested Class Summary
static class Report.Location
          Defines a record for the location of an error/warning
 
Method Summary
 List<String> getErrors()
          Return the errors.
 Report.Location getLocation(String msg)
          Return the errors for the given error or warning.
 List<String> getWarnings()
          Return the warnings.
 boolean isOk()
          Check if this report has any relevant errors that should make the run associated with this report invalid.
 

Method Detail

getWarnings

List<String> getWarnings()
Return the warnings. This list must not be changed and may be immutable.

Returns:
the warnings

getErrors

List<String> getErrors()
Return the errors. This list must not be changed and may be immutable.

Returns:
the errors

getLocation

Report.Location getLocation(String msg)
Return the errors for the given error or warning. Can return null.

Parameters:
msg - The message
Returns:
null or the location of the message

isOk

boolean isOk()
Check if this report has any relevant errors that should make the run associated with this report invalid. I.e. if this returns false then the run should be disregarded.

Returns:
true if this run should be disregarded due to errors


Copyright © 2014 aQute SARL. All rights reserved.