protected class MappingRootImpl.MappedObjectStateAdapter extends AdapterImpl implements MappedObjectState, IDisposable
Adapter.Internal| Modifier and Type | Field and Description |
|---|---|
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 java.util.Collection<Mapping> |
mappings
This keeps track of all the mappings that involve the mapped object.
|
protected java.lang.Object |
originatingInput
This keeps track of the originating input of the mapped object, if any.
|
target| Modifier | Constructor and Description |
|---|---|
protected |
MappingRootImpl.MappedObjectStateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.util.Collection<Mapping> |
getMappings()
This returns all the mappings the refer to the mapped object.
|
java.lang.Object |
getOriginatingInput()
This returns, if appropriate, the originating input object of the output object.
|
boolean |
isAdapterForType(java.lang.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(java.lang.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.
|
getTarget, notifyChanged, setTarget, unsetTargetprotected boolean isInput
protected boolean isOutput
protected java.lang.Object originatingInput
protected java.util.Collection<Mapping> mappings
protected ChangeNotifier changeNotifier
IChangeNotifier is delegated.protected MappingRootImpl.MappedObjectStateAdapter()
public boolean isAdapterForType(java.lang.Object type)
MappingRootImpl.mappedObjectStateAdapterFactory.isAdapterForType in interface AdapterisAdapterForType in class AdapterImpltype - the type.falseAdapterFactory.isFactoryForType(java.lang.Object)public boolean isInput()
MappedObjectStateisInput in interface MappedObjectStatepublic void setInput()
MappedObjectStatesetInput in interface MappedObjectStatepublic boolean isOutput()
MappedObjectStateisOutput in interface MappedObjectStatepublic void setOutput()
MappedObjectStatesetOutput in interface MappedObjectStatepublic java.lang.Object getOriginatingInput()
MappedObjectStategetOriginatingInput in interface MappedObjectStatepublic void setOriginatingInput(java.lang.Object originatingInput)
MappedObjectStatesetOriginatingInput in interface MappedObjectStatepublic java.util.Collection<Mapping> getMappings()
MappedObjectStategetMappings in interface MappedObjectStatepublic void addListener(INotifyChangedListener notifyChangedListener)
IChangeNotifieraddListener in interface IChangeNotifierpublic void removeListener(INotifyChangedListener notifyChangedListener)
IChangeNotifierremoveListener in interface IChangeNotifierpublic void fireNotifyChanged(Notification notification)
IChangeNotifiernotifyChanged for each listener.fireNotifyChanged in interface IChangeNotifierpublic void dispose()
IDisposabledispose in interface IDisposable