Class SharedModel
- java.lang.Object
- 
- org.eclipse.ecf.core.sharedobject.BaseSharedObject
- 
- org.eclipse.ecf.core.sharedobject.OptimisticSharedObject
- 
- org.eclipse.ecf.core.sharedobject.model.SharedModel
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable,- IIdentifiable,- ISharedObject
 
 public class SharedModel extends OptimisticSharedObject - Since:
- 2.4
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classSharedModel.Property
 - 
Field SummaryFields Modifier and Type Field Description protected StringSEND_PROPERTY_TO_MSG- 
Fields inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObjectDESTROYREMOTE_CODE, DESTROYSELFLOCAL_CODE
 
- 
 - 
Constructor SummaryConstructors Constructor Description SharedModel()
 - 
Method Summary- 
Methods inherited from class org.eclipse.ecf.core.sharedobject.OptimisticSharedObjectinitialize
 - 
Methods inherited from class org.eclipse.ecf.core.sharedobject.BaseSharedObjectaddEventProcessor, clearEventProcessors, creationCompleted, destroyRemote, destroySelf, destroySelfLocal, fireEventProcessors, getAdapter, getConfig, getConnectedID, getContext, getGroupMemberIDs, getHomeContainerID, getID, getLocalContainerID, getProperties, getReplicaDescription, getReplicaDescriptions, getSharedObjectMsgFromEvent, handleEvent, handleEvents, handleSharedObjectCreateResponseEvent, handleSharedObjectMsg, handleSharedObjectMsgEvent, handleUnhandledEvent, init, isConnected, isPrimary, log, log, removeEventProcessor, replicateToRemoteContainers, sendSharedObjectMsgTo, sendSharedObjectMsgToPrimary, sendSharedObjectMsgToSelf, trace, traceCatching, traceEntering, traceEntering, traceEntering, traceExiting, traceExiting
 
- 
 
- 
- 
- 
Field Detail- 
SEND_PROPERTY_TO_MSGprotected final String SEND_PROPERTY_TO_MSG - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
addListenerpublic boolean addListener(ISharedModelListener listener) 
 - 
removeListenerpublic boolean removeListener(ISharedModelListener listener) 
 - 
handleListenerExceptionprotected void handleListenerException(ISharedModelListener l, Throwable exception) 
 - 
fireListenersprotected void fireListeners(ISharedModelEvent event) 
 - 
disposepublic void dispose(ID containerID) Description copied from interface:ISharedObjectMethod called by the ISharedObjectContainer upon ISharedObject destruction. Once this method is called, no more Events will be passed to a ISharedObject until the init method is called again.- Specified by:
- disposein interface- ISharedObject
- Overrides:
- disposein class- BaseSharedObject
- Parameters:
- containerID- the ID of the container that is disposing this ISharedObject
 
 - 
copyPropertiesprotected Collection<SharedModel.Property> copyProperties() 
 - 
addPropertyprotected SharedModel.Property addProperty(String name) 
 - 
addPropertyprotected SharedModel.Property addProperty(String name, Object value) 
 - 
addPropertyprotected SharedModel.Property addProperty(SharedModel.Property property) 
 - 
removePropertyprotected SharedModel.Property removeProperty(String propertyName) 
 - 
getPropertyprotected SharedModel.Property getProperty(String propertyName) 
 - 
getOrAddPropertyprotected SharedModel.Property getOrAddProperty(String propertyName) 
 - 
setOrAddPropertyprotected SharedModel.Property setOrAddProperty(String propertyName, Object value) 
 - 
removeAllPropertiesprotected void removeAllProperties() 
 - 
sendPropertyToprotected final void sendPropertyTo(ID target, String msg, SharedModel.Property property) throws IOException - Throws:
- IOException
 
 - 
sendPropertyToprotected final void sendPropertyTo(ID target, SharedModel.Property property) throws IOException - Throws:
- IOException
 
 - 
handleSharedObjectMsgprotected boolean handleSharedObjectMsg(ID fromID, SharedObjectMsg msg) - Overrides:
- handleSharedObjectMsgin class- BaseSharedObject
 
 - 
handlePropertyToprotected boolean handlePropertyTo(ID fromID, String msg, SharedModel.Property property) 
 
- 
 
-