|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.fields.util.MessagedResult
public class MessagedResult
This class wraps a boolean result and allows the result creator to specify a string message about the result and allows a false result to be classified as Normal, a Warning, or a Fatal error.
| Field Summary | |
|---|---|
static int |
FATAL
|
static int |
NORMAL
|
static int |
WARNING
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getMessage()
|
boolean |
getResult()
|
boolean |
isFatal()
|
boolean |
isWarning()
|
void |
setMessage(String message)
|
void |
setResult(boolean result)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMAL
public static final int WARNING
public static final int FATAL
| Constructor Detail |
|---|
public MessagedResult(boolean result)
result - was the result of the operation
public MessagedResult(boolean result,
String message)
result - was the result of the operationmessage - the message about the state and the result
public 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 ignored
public MessagedResult(String html,
int state)
html - state - the state of the display html.| Method Detail |
|---|
public boolean getResult()
public void setResult(boolean result)
public String getMessage()
public void setMessage(String message)
public boolean isFatal()
public boolean isWarning()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||