|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.transfer.CDOTransfer
Abstracts the transfer of a tree of elements
for a
source
to a target
system
.
The mappings of the source elements to their target elements is represented as a tree of transfer mappings
.
A transfer fires the following events
:
CDOTransfer.ChildrenChangedEvent
when the children
of a mapping have changed.
CDOTransfer.RelativePathChangedEvent
when the relative path
of a mapping has changed.
CDOTransfer.TransferTypeChangedEvent
when the transfer type
of a mapping has changed.
CDOTransfer.UnmappedModelsEvent
when the set of unmapped models
has changed.
Nested Class Summary | |
---|---|
static class |
CDOTransfer.ChildrenChangedEvent
A mapping event fired from a transfer when
the children of a mapping have changed. |
static class |
CDOTransfer.MappingEvent
An abstract base implementation of a mapping event . |
static class |
CDOTransfer.ModelTransferContext
Encapsulates the model-specific aspects of a transfer . |
static interface |
CDOTransfer.ModelTransferResolution
Reserved for future use. |
static class |
CDOTransfer.RelativePathChangedEvent
A mapping event fired from a transfer when
the relative path of a mapping has changed. |
static class |
CDOTransfer.TransferTypeChangedEvent
A mapping event fired from a transfer when
the transfer type of a mapping has changed. |
static class |
CDOTransfer.UnmappedModelsEvent
An event fired from a transfer when
the set of unmapped models has changed. |
Field Summary | |
---|---|
protected Notifier |
notifier
|
Constructor Summary | |
---|---|
CDOTransfer(CDOTransferSystem sourceSystem,
CDOTransferSystem targetSystem)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Notifier notifier
Constructor Detail |
---|
public CDOTransfer(CDOTransferSystem sourceSystem, CDOTransferSystem targetSystem)
Method Detail |
---|
public void addListener(IListener listener)
addListener
in interface INotifier
public void removeListener(IListener listener)
removeListener
in interface INotifier
public boolean hasListeners()
hasListeners
in interface INotifier
public IListener[] getListeners()
getListeners
in interface INotifier
public final CDOTransferSystem getSourceSystem()
public final CDOTransferSystem getTargetSystem()
public CDOTransfer.ModelTransferContext getModelTransferContext()
public final CDOTransferType getDefaultTransferType()
public final void setDefaultTransferType(CDOTransferType defaultTransferType)
public Set<CDOTransferType> getUsedTransferTypes()
public final CDOTransferMapping getRootMapping()
public IPath getTargetPath()
public void setTargetPath(IPath targetPath)
public void setTargetPath(String path)
public int getMappingCount()
public CDOTransferMapping map(IPath sourcePath, IProgressMonitor monitor)
public CDOTransferMapping map(String sourcePath, IProgressMonitor monitor)
public CDOTransferMapping map(CDOTransferElement source, IProgressMonitor monitor)
protected CDOTransferMapping map(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor)
protected void unmap(CDOTransferMapping mapping)
protected CDOTransferMapping createMapping(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor)
protected CDOTransfer.ModelTransferContext createModelTransferContext()
protected CDOTransferType getTransferType(CDOTransferElement source)
protected void validate(CDOTransferMapping mapping, IProgressMonitor monitor)
public void perform()
public void perform(IProgressMonitor monitor)
protected void perform(CDOTransferMapping mapping, IProgressMonitor monitor)
protected void performFolder(CDOTransferMapping mapping, IProgressMonitor monitor)
protected void performModel(CDOTransferMapping mapping, IProgressMonitor monitor)
protected void performBinary(CDOTransferMapping mapping, IProgressMonitor monitor)
protected void performText(CDOTransferMapping mapping, String encoding, IProgressMonitor monitor)
protected void childrenChanged(CDOTransferMapping mapping, CDOTransferMapping child, CDOTransfer.ChildrenChangedEvent.Kind kind)
protected void relativePathChanged(CDOTransferMapping mapping, IPath oldPath, IPath newPath)
protected void transferTypeChanged(CDOTransferMapping mapping, CDOTransferType oldType, CDOTransferType newType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |