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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static org.eclipse.core.runtime.IStatusCANCEL_STATUSstatic org.eclipse.core.runtime.IStatusOK_STATUS
 - 
Constructor SummaryConstructors Constructor Description SerializableStatus(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus[]getChildren()intgetCode()ThrowablegetException()StringgetMessage()StringgetPlugin()intgetSeverity()booleanisMultiStatus()booleanisOK()booleanmatches(int severityMask)protected voidsetCode(int code)Sets the status code.protected voidsetException(Throwable exception)Sets the exception.protected voidsetMessage(String message)Sets the message.protected voidsetPlugin(String pluginId)Sets the plug-in id.protected voidsetSeverity(int severity)Sets the severity.StringtoString()Returns a string representation of the status, suitable for debugging purposes only.
 
- 
- 
- 
Constructor Detail- 
SerializableStatuspublic SerializableStatus(org.eclipse.core.runtime.IStatus status) 
 - 
SerializableStatuspublic SerializableStatus(int severity, String pluginId, int code, String message, Throwable exception)
 - 
SerializableStatuspublic SerializableStatus(int severity, String pluginId, String message, Throwable exception)
 
- 
 - 
Method Detail- 
getChildrenpublic org.eclipse.core.runtime.IStatus[] getChildren() - Specified by:
- getChildrenin interface- org.eclipse.core.runtime.IStatus
 
 - 
getCodepublic int getCode() - Specified by:
- getCodein interface- org.eclipse.core.runtime.IStatus
 
 - 
getExceptionpublic Throwable getException() - Specified by:
- getExceptionin interface- org.eclipse.core.runtime.IStatus
 
 - 
getMessagepublic String getMessage() - Specified by:
- getMessagein interface- org.eclipse.core.runtime.IStatus
 
 - 
getPluginpublic String getPlugin() - Specified by:
- getPluginin interface- org.eclipse.core.runtime.IStatus
 
 - 
getSeveritypublic int getSeverity() - Specified by:
- getSeverityin interface- org.eclipse.core.runtime.IStatus
 
 - 
isMultiStatuspublic boolean isMultiStatus() - Specified by:
- isMultiStatusin interface- org.eclipse.core.runtime.IStatus
 
 - 
isOKpublic boolean isOK() - Specified by:
- isOKin interface- org.eclipse.core.runtime.IStatus
 
 - 
matchespublic boolean matches(int severityMask) - Specified by:
- matchesin interface- org.eclipse.core.runtime.IStatus
 
 - 
setCodeprotected void setCode(int code) Sets the status code.- Parameters:
- code- the plug-in-specific status code, or- OK
 
 - 
setExceptionprotected void setException(Throwable exception) Sets the exception.- Parameters:
- exception- a low-level exception, or- nullif not applicable
 
 - 
setMessageprotected void setMessage(String message) 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
 
 - 
setPluginprotected void setPlugin(String pluginId) Sets the plug-in id.- Parameters:
- pluginId- the unique identifier of the relevant plug-in
 
 - 
setSeverityprotected void setSeverity(int severity) Sets the severity.- Parameters:
- severity- the severity; one of- OK,- ERROR,- INFO,- WARNING, or- CANCEL
 
 
- 
 
-