Package org.eclipse.ecf.core.status
Class SerializableMultiStatus
- java.lang.Object
- 
- org.eclipse.ecf.core.status.SerializableStatus
- 
- org.eclipse.ecf.core.status.SerializableMultiStatus
 
 
- 
- All Implemented Interfaces:
- Serializable,- org.eclipse.core.runtime.IStatus
 
 public class SerializableMultiStatus extends SerializableStatus - Since:
- 3.2
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.eclipse.ecf.core.status.SerializableStatusCANCEL_STATUS, OK_STATUS
 
- 
 - 
Constructor SummaryConstructors Constructor Description SerializableMultiStatus(String pluginId, int code, String message, Throwable exception)SerializableMultiStatus(String pluginId, int code, org.eclipse.core.runtime.IStatus[] newChildren, String message, Throwable exception)SerializableMultiStatus(org.eclipse.core.runtime.IStatus status)SerializableMultiStatus(org.eclipse.core.runtime.MultiStatus multiStatus)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SerializableStatus status)Adds the given status to this multi-status.voidaddAll(SerializableStatus status)Adds all of the children of the given status to this multi-status.org.eclipse.core.runtime.IStatus[]getChildren()booleanisMultiStatus()voidmerge(SerializableStatus status)Merges the given status into this multi-status.StringtoString()Returns a string representation of the status, suitable for debugging purposes only.- 
Methods inherited from class org.eclipse.ecf.core.status.SerializableStatusgetCode, getException, getMessage, getPlugin, getSeverity, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity
 
- 
 
- 
- 
- 
Constructor Detail- 
SerializableMultiStatuspublic SerializableMultiStatus(org.eclipse.core.runtime.IStatus status) 
 - 
SerializableMultiStatuspublic SerializableMultiStatus(org.eclipse.core.runtime.MultiStatus multiStatus) 
 - 
SerializableMultiStatuspublic SerializableMultiStatus(String pluginId, int code, org.eclipse.core.runtime.IStatus[] newChildren, String message, Throwable exception) 
 
- 
 - 
Method Detail- 
addpublic void add(SerializableStatus status) Adds the given status to this multi-status.- Parameters:
- status- the new child status
 
 - 
addAllpublic void addAll(SerializableStatus status) Adds all of the children of the given status to this multi-status. Does nothing if the given status has no children (which includes the case where it is not a multi-status).- Parameters:
- status- the status whose children are to be added to this one
 
 - 
getChildrenpublic org.eclipse.core.runtime.IStatus[] getChildren() - Specified by:
- getChildrenin interface- org.eclipse.core.runtime.IStatus
- Overrides:
- getChildrenin class- SerializableStatus
 
 - 
isMultiStatuspublic boolean isMultiStatus() - Specified by:
- isMultiStatusin interface- org.eclipse.core.runtime.IStatus
- Overrides:
- isMultiStatusin class- SerializableStatus
 
 - 
mergepublic void merge(SerializableStatus status) Merges the given status into this multi-status. Equivalent toadd(status)if the given status is not a multi-status. Equivalent toaddAll(status)if the given status is a multi-status.- Parameters:
- status- the status to merge into this one
- See Also:
- add(SerializableStatus),- addAll(SerializableStatus)
 
 - 
toStringpublic String toString() Returns a string representation of the status, suitable for debugging purposes only.- Overrides:
- toStringin class- SerializableStatus
- Returns:
- String
 
 
- 
 
-