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, unsetTarget
protected 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 Adapter
isAdapterForType
in class AdapterImpl
type
- the type.false
AdapterFactory.isFactoryForType(java.lang.Object)
public boolean isInput()
MappedObjectState
isInput
in interface MappedObjectState
public void setInput()
MappedObjectState
setInput
in interface MappedObjectState
public boolean isOutput()
MappedObjectState
isOutput
in interface MappedObjectState
public void setOutput()
MappedObjectState
setOutput
in interface MappedObjectState
public java.lang.Object getOriginatingInput()
MappedObjectState
getOriginatingInput
in interface MappedObjectState
public void setOriginatingInput(java.lang.Object originatingInput)
MappedObjectState
setOriginatingInput
in interface MappedObjectState
public java.util.Collection<Mapping> getMappings()
MappedObjectState
getMappings
in interface MappedObjectState
public void addListener(INotifyChangedListener notifyChangedListener)
IChangeNotifier
addListener
in interface IChangeNotifier
public void removeListener(INotifyChangedListener notifyChangedListener)
IChangeNotifier
removeListener
in interface IChangeNotifier
public void fireNotifyChanged(Notification notification)
IChangeNotifier
notifyChanged
for each listener.fireNotifyChanged
in interface IChangeNotifier
public void dispose()
IDisposable
dispose
in interface IDisposable