Package org.eclipse.emf.cdo.transfer
Class CDOTransfer
java.lang.Object
org.eclipse.emf.cdo.transfer.CDOTransfer
- All Implemented Interfaces:
org.eclipse.net4j.util.event.INotifier
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 thechildren
of a mapping have changed.CDOTransfer.RelativePathChangedEvent
when therelative path
of a mapping has changed.CDOTransfer.TransferTypeChangedEvent
when thetransfer type
of a mapping has changed.CDOTransfer.UnmappedModelsEvent
when the set ofunmapped models
has changed.
- Since:
- 4.2
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
An abstract base implementation of amapping
event
.static class
Encapsulates the model-specific aspects of atransfer
.static interface
Reserved for future use.static interface
Provides the path of a transfer element relative to its parent.static class
static class
static class
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(org.eclipse.net4j.util.event.IListener listener) protected void
childrenChanged
(CDOTransferMapping mapping, CDOTransferMapping child, CDOTransfer.ChildrenChangedEvent.Kind kind) protected CDOTransferMapping
createMapping
(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor) protected CDOTransfer.ModelTransferContext
final CDOTransferType
org.eclipse.net4j.util.event.IListener[]
int
final CDOTransfer.PathProvider
final CDOTransferMapping
final CDOTransferSystem
final CDOTransferSystem
protected CDOTransferType
getTransferType
(CDOTransferElement source) boolean
map
(String sourcePath, IProgressMonitor monitor) map
(IPath sourcePath, IProgressMonitor monitor) map
(CDOTransferElement source, IProgressMonitor monitor) protected CDOTransferMapping
map
(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor) void
perform()
void
perform
(IProgressMonitor monitor) protected void
perform
(CDOTransferMapping mapping, IProgressMonitor monitor) protected void
performBinary
(CDOTransferMapping mapping, IProgressMonitor monitor) protected void
performFolder
(CDOTransferMapping mapping, IProgressMonitor monitor) protected void
performModel
(CDOTransferMapping mapping, IProgressMonitor monitor) protected void
performText
(CDOTransferMapping mapping, String encoding, IProgressMonitor monitor) protected void
relativePathChanged
(CDOTransferMapping mapping, IPath oldPath, IPath newPath) void
removeListener
(org.eclipse.net4j.util.event.IListener listener) final void
setDefaultTransferType
(CDOTransferType defaultTransferType) final void
setPathProvider
(CDOTransfer.PathProvider pathProvider) void
setTargetPath
(String path) void
setTargetPath
(IPath targetPath) protected void
transferTypeChanged
(CDOTransferMapping mapping, CDOTransferType oldType, CDOTransferType newType) protected void
unmap
(CDOTransferMapping mapping) protected void
validate
(CDOTransferMapping mapping, IProgressMonitor monitor)
-
Field Details
-
notifier
protected final org.eclipse.net4j.util.event.Notifier notifier
-
-
Constructor Details
-
CDOTransfer
-
-
Method Details
-
addListener
public void addListener(org.eclipse.net4j.util.event.IListener listener) - Specified by:
addListener
in interfaceorg.eclipse.net4j.util.event.INotifier
-
removeListener
public void removeListener(org.eclipse.net4j.util.event.IListener listener) - Specified by:
removeListener
in interfaceorg.eclipse.net4j.util.event.INotifier
-
hasListeners
public boolean hasListeners()- Specified by:
hasListeners
in interfaceorg.eclipse.net4j.util.event.INotifier
-
getListeners
public org.eclipse.net4j.util.event.IListener[] getListeners()- Specified by:
getListeners
in interfaceorg.eclipse.net4j.util.event.INotifier
-
getSourceSystem
-
getTargetSystem
-
getPathProvider
- Since:
- 4.3
-
setPathProvider
- Since:
- 4.3
-
getModelTransferContext
-
getDefaultTransferType
-
setDefaultTransferType
-
getUsedTransferTypes
-
getRootMapping
-
getTargetPath
-
setTargetPath
-
setTargetPath
-
getMappingCount
public int getMappingCount() -
map
-
map
-
map
-
map
protected CDOTransferMapping map(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor) -
unmap
-
createMapping
protected CDOTransferMapping createMapping(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor) -
createModelTransferContext
-
getTransferType
-
validate
-
perform
public void perform() -
perform
-
perform
-
performFolder
-
performModel
-
performBinary
-
performText
-
childrenChanged
protected void childrenChanged(CDOTransferMapping mapping, CDOTransferMapping child, CDOTransfer.ChildrenChangedEvent.Kind kind) -
relativePathChanged
-
transferTypeChanged
protected void transferTypeChanged(CDOTransferMapping mapping, CDOTransferType oldType, CDOTransferType newType)
-