org.mmbase.module.tools
Class ApplicationResult

Package class diagram package ApplicationResult
java.lang.Object
  extended by org.mmbase.module.tools.ApplicationResult

 class ApplicationResult
extends Object

Contains the status after installing an MMBase 'application'. I.e. whether is was successful, and a newline separated message String containing the reason(s).

Version:
$Id: ApplicationResult.java 44262 2010-12-24 22:10:18Z michiel $

Field Summary
protected  StringBuilder resultMessage
           
protected  boolean success
           
 
Constructor Summary
ApplicationResult()
           
 
Method Summary
 void addMessage(String message)
           
 boolean error(String message)
          Adds a message and logs it as an error, and sets the success status to false.
 String getMessage()
           
 boolean isSuccess()
           
 boolean success(String message)
          Adds a message and sets the success status to true.
 boolean warn(String message)
          Adds a message and logs it as an warning, and sets the success status to false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultMessage

protected final StringBuilder resultMessage

success

protected boolean success
Constructor Detail

ApplicationResult

public ApplicationResult()
Method Detail

getMessage

public String getMessage()

isSuccess

public boolean isSuccess()

addMessage

public void addMessage(String message)

error

public boolean error(String message)
Adds a message and logs it as an error, and sets the success status to false.


warn

public boolean warn(String message)
Adds a message and logs it as an warning, and sets the success status to false.


success

public boolean success(String message)
Adds a message and sets the success status to true.



MMBase2 Core 2.0-SNAPSHOT - 2013-11-29T11:08