com.objectplanet.survey.plugin
Class ProcessResult

java.lang.Object
  extended by com.objectplanet.survey.plugin.ProcessResult

public class ProcessResult
extends java.lang.Object

This class represents result of plugin function and setup process. The result status can be error or confirmation. Set isError to true if perocess result is error, false otherwise.

Author:
Irina Brun

Constructor Summary
ProcessResult(java.lang.String message, boolean isError)
          Constract ProcessResult
 
Method Summary
 java.lang.String getMessage()
          Returns message to show to the user (error message or confirmation message)
 boolean isError()
          Returns true is result of the process is an error.
 void setMessage(java.lang.String message)
          Sets message to show to the user (error message or confirmation message)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessResult

public ProcessResult(java.lang.String message,
                     boolean isError)
Constract ProcessResult

Parameters:
message - Message to show to the user
isError - True if message is an error message, false message is a confirmation message.
Method Detail

isError

public boolean isError()
Returns true is result of the process is an error.

Returns:
Returns true is result of the process is an error.

getMessage

public java.lang.String getMessage()
Returns message to show to the user (error message or confirmation message)

Returns:
Returns the message.

setMessage

public void setMessage(java.lang.String message)
Sets message to show to the user (error message or confirmation message)

Parameters:
message - The message to set.

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016