public class MessagedResult extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FATAL |
static int |
NORMAL |
static int |
WARNING |
Constructor and Description |
---|
MessagedResult(boolean result)
Constructs a message result with a null message whose state is normal.
|
MessagedResult(boolean result,
String message)
Constructs a message result whose state is normal
|
MessagedResult(boolean result,
String message,
int state)
Used to construct a messaged result.
|
MessagedResult(String html,
int state)
Use this to specify the state of the html message.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
boolean |
getResult() |
boolean |
isFatal() |
boolean |
isWarning() |
void |
setMessage(String message) |
void |
setResult(boolean result) |
public static final int NORMAL
public static final int WARNING
public static final int FATAL
public MessagedResult(boolean result)
result
- was the result of the operationpublic MessagedResult(boolean result, String message)
result
- was the result of the operationmessage
- the message about the state and the resultpublic MessagedResult(boolean result, String message, int state)
result
- was the result of the operationmessage
- the message about the state and the resultstate
- can be NORMAL, WARNING or FATAL if result is false, otherwise this is ignoredpublic MessagedResult(String html, int state)
html
- state
- the state of the display html.Copyright © 2002-2016 Atlassian. All Rights Reserved.