Constructor and Description |
---|
StatusInfo()
Creates a status set to OK (no message)
|
StatusInfo(int severity,
String message)
Creates a status .
|
Modifier and Type | Method and Description |
---|---|
IStatus[] |
getChildren()
Returns always an empty array.
|
int |
getCode()
Returns always the error severity.
|
Throwable |
getException()
Returns always
null . |
String |
getMessage() |
String |
getPlugin() |
int |
getSeverity() |
boolean |
isError()
Returns if the status' severity is ERROR.
|
boolean |
isInfo()
Returns if the status' severity is INFO.
|
boolean |
isMultiStatus()
Returns always
false . |
boolean |
isOK()
Returns if the status' severity is OK.
|
boolean |
isWarning()
Returns if the status' severity is WARNING.
|
boolean |
matches(int severityMask) |
void |
setError(String errorMessage)
Sets the status to ERROR.
|
void |
setInfo(String infoMessage)
Sets the status to INFO.
|
void |
setOK()
Sets the status to OK.
|
void |
setWarning(String warningMessage)
Sets the status to WARNING.
|
String |
toString()
Returns a string representation of the status, suitable
for debugging purposes only.
|
public static final IStatus OK_STATUS
public StatusInfo()
public StatusInfo(int severity, String message)
severity
- The status severity: ERROR, WARNING, INFO and OK.message
- The message of the status. Applies only for ERROR,
WARNING and INFO.public boolean isOK()
public boolean isWarning()
public boolean isInfo()
public boolean isError()
public String getMessage()
getMessage
in interface IStatus
IStatus.getMessage()
public void setError(String errorMessage)
errorMessage
- The error message (can be empty, but not null)public void setWarning(String warningMessage)
warningMessage
- The warning message (can be empty, but not null)public void setInfo(String infoMessage)
infoMessage
- The info message (can be empty, but not null)public void setOK()
public boolean isMultiStatus()
false
.isMultiStatus
in interface IStatus
IStatus.isMultiStatus()
public int getSeverity()
getSeverity
in interface IStatus
public Throwable getException()
null
.getException
in interface IStatus
IStatus.getException()
public int getCode()
getCode
in interface IStatus
IStatus.getCode()
public IStatus[] getChildren()
getChildren
in interface IStatus
IStatus.getChildren()
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.