Package org.eclipse.ecf.core.status
Class SerializableStatus
java.lang.Object
org.eclipse.ecf.core.status.SerializableStatus
- All Implemented Interfaces:
Serializable
,org.eclipse.core.runtime.IStatus
- Direct Known Subclasses:
SerializableMultiStatus
public class SerializableStatus
extends Object
implements org.eclipse.core.runtime.IStatus, Serializable
- Since:
- 3.2
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.eclipse.core.runtime.IStatus
static final org.eclipse.core.runtime.IStatus
Fields inherited from interface org.eclipse.core.runtime.IStatus
CANCEL, ERROR, INFO, OK, WARNING
-
Constructor Summary
ConstructorDescriptionSerializableStatus
(int severity, String pluginId, int code, String message, Throwable exception) SerializableStatus
(int severity, String pluginId, String message) SerializableStatus
(int severity, String pluginId, String message, Throwable exception) SerializableStatus
(org.eclipse.core.runtime.IStatus status) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus[]
int
getCode()
int
boolean
boolean
isOK()
boolean
matches
(int severityMask) protected void
setCode
(int code) Sets the status code.protected void
setException
(Throwable exception) Sets the exception.protected void
setMessage
(String message) Sets the message.protected void
Sets the plug-in id.protected void
setSeverity
(int severity) Sets the severity.toString()
Returns a string representation of the status, suitable for debugging purposes only.
-
Field Details
-
OK_STATUS
public static final org.eclipse.core.runtime.IStatus OK_STATUS -
CANCEL_STATUS
public static final org.eclipse.core.runtime.IStatus CANCEL_STATUS
-
-
Constructor Details
-
SerializableStatus
public SerializableStatus(org.eclipse.core.runtime.IStatus status) -
SerializableStatus
-
SerializableStatus
-
SerializableStatus
-
-
Method Details
-
getChildren
public org.eclipse.core.runtime.IStatus[] getChildren()- Specified by:
getChildren
in interfaceorg.eclipse.core.runtime.IStatus
-
getCode
public int getCode()- Specified by:
getCode
in interfaceorg.eclipse.core.runtime.IStatus
-
getException
- Specified by:
getException
in interfaceorg.eclipse.core.runtime.IStatus
-
getMessage
- Specified by:
getMessage
in interfaceorg.eclipse.core.runtime.IStatus
-
getPlugin
- Specified by:
getPlugin
in interfaceorg.eclipse.core.runtime.IStatus
-
getSeverity
public int getSeverity()- Specified by:
getSeverity
in interfaceorg.eclipse.core.runtime.IStatus
-
isMultiStatus
public boolean isMultiStatus()- Specified by:
isMultiStatus
in interfaceorg.eclipse.core.runtime.IStatus
-
isOK
public boolean isOK()- Specified by:
isOK
in interfaceorg.eclipse.core.runtime.IStatus
-
matches
public boolean matches(int severityMask) - Specified by:
matches
in interfaceorg.eclipse.core.runtime.IStatus
-
setCode
protected void setCode(int code) Sets the status code.- Parameters:
code
- the plug-in-specific status code, orOK
-
setException
Sets the exception.- Parameters:
exception
- a low-level exception, ornull
if not applicable
-
setMessage
Sets the message. If null is passed, message is set to an empty string.- Parameters:
message
- a human-readable message, localized to the current locale
-
setPlugin
Sets the plug-in id.- Parameters:
pluginId
- the unique identifier of the relevant plug-in
-
setSeverity
protected void setSeverity(int severity) Sets the severity.- Parameters:
severity
- the severity; one ofOK
,ERROR
,INFO
,WARNING
, orCANCEL
-
toString
Returns a string representation of the status, suitable for debugging purposes only.
-