|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.mapping.impl.MappingRootImpl.MappedObjectStateAdapter
This is a simple implementation of the basic information that needs to be maintained for any mapped object.
| Field Summary | |
protected ChangeNotifier |
changeNotifier
This is where IChangeNotifier is delegated. |
protected boolean |
isInput
This indicates whether the mapped object is an input. |
protected boolean |
isOutput
This indicates whether the object is an output. |
protected Collection |
mappings
This keeps track of all the mappings that involve the mapped object. |
protected Object |
originatingInput
This keeps track of the originating input of the mapped object, if any. |
| Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
| Constructor Summary | |
protected |
MappingRootImpl.MappedObjectStateAdapter()
|
| Method Summary | |
void |
addListener(INotifyChangedListener notifyChangedListener)
This adds another listener. |
void |
dispose()
This is called to dispose the object. |
void |
fireNotifyChanged(Notification notification)
This calls notifyChanged for each listener. |
Collection |
getMappings()
This returns all the mappings the refer to the mapped object. |
Object |
getOriginatingInput()
This returns, if appropriate, the originating input object of the output object. |
boolean |
isAdapterForType(Object type)
This returns when type is the MappingRootImpl.mappedObjectStateAdapterFactory. |
boolean |
isInput()
This returns whether the mapped object is an input. |
boolean |
isOutput()
This returns whether the mapped object is an output. |
void |
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener. |
void |
setInput()
This is called to indicate that the mapped object is an input. |
void |
setOriginatingInput(Object originatingInput)
This sets the originating input object of the output object. |
void |
setOutput()
This is called to indicate that the mapped object is an output. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isInput
protected boolean isOutput
protected Object originatingInput
protected Collection mappings
protected ChangeNotifier changeNotifier
IChangeNotifier is delegated.
| Constructor Detail |
protected MappingRootImpl.MappedObjectStateAdapter()
| Method Detail |
public boolean isAdapterForType(Object type)
MappingRootImpl.mappedObjectStateAdapterFactory.
isAdapterForType in interface AdapterisAdapterForType in class AdapterImpltype - the type.
falsepublic boolean isInput()
MappedObjectState
isInput in interface MappedObjectStatepublic void setInput()
MappedObjectState
setInput in interface MappedObjectStatepublic boolean isOutput()
MappedObjectState
isOutput in interface MappedObjectStatepublic void setOutput()
MappedObjectState
setOutput in interface MappedObjectStatepublic Object getOriginatingInput()
MappedObjectState
getOriginatingInput in interface MappedObjectStatepublic void setOriginatingInput(Object originatingInput)
MappedObjectState
setOriginatingInput in interface MappedObjectStatepublic Collection getMappings()
MappedObjectState
getMappings in interface MappedObjectStatepublic void addListener(INotifyChangedListener notifyChangedListener)
IChangeNotifier
addListener in interface IChangeNotifierpublic void removeListener(INotifyChangedListener notifyChangedListener)
IChangeNotifier
removeListener in interface IChangeNotifierpublic void fireNotifyChanged(Notification notification)
IChangeNotifiernotifyChanged for each listener.
fireNotifyChanged in interface IChangeNotifierpublic void dispose()
IDisposable
dispose in interface IDisposable
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||