Package org.eclipse.emf.cdo.transfer

# Klasse CDOTransfer

java.lang.Object
org.eclipse.emf.cdo.transfer.CDOTransfer

Alle implementierten Schnittstellen:
  `org.eclipse.net4j.util.event.INotifier`

public class CDOTransfer extends Object implements 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 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.

Seit:
  4.2
Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`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 interface`
`CDOTransfer.PathProvider`
Provides the path of a transfer element relative to its parent.
`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.

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`org.eclipse.net4j.util.event.INotifier.INotifier2`

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`protected final org.eclipse.net4j.util.event.Notifier`
`notifier`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`CDOTransfer(CDOTransferSystem sourceSystem, CDOTransferSystem targetSystem)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`void`
`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`
`createModelTransferContext()`
`final CDOTransferType`
`getDefaultTransferType()`
`org.eclipse.net4j.util.event.IListener[]`
`getListeners()`
`int`
`getMappingCount()`
`CDOTransfer.ModelTransferContext`
`getModelTransferContext()`
`final CDOTransfer.PathProvider`
`getPathProvider()`
`final CDOTransferMapping`
`getRootMapping()`
`final CDOTransferSystem`
`getSourceSystem()`
`IPath`
`getTargetPath()`
`final CDOTransferSystem`
`getTargetSystem()`
`protected CDOTransferType`
`getTransferType(CDOTransferElement source)`
`Set<CDOTransferType>`
`getUsedTransferTypes()`
`boolean`
`hasListeners()`
`CDOTransferMapping`
`map(String sourcePath, IProgressMonitor monitor)`
`CDOTransferMapping`
`map(IPath sourcePath, IProgressMonitor monitor)`
`CDOTransferMapping`
`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)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### notifier

protected final org.eclipse.net4j.util.event.Notifier notifier

## Konstruktordetails

### CDOTransfer

public CDOTransfer(CDOTransferSystem sourceSystem, CDOTransferSystem targetSystem)

## Methodendetails

### addListener

public void addListener(org.eclipse.net4j.util.event.IListener listener)

Angegeben von:
  `addListener` in Schnittstelle `org.eclipse.net4j.util.event.INotifier`

### removeListener

public void removeListener(org.eclipse.net4j.util.event.IListener listener)

Angegeben von:
  `removeListener` in Schnittstelle `org.eclipse.net4j.util.event.INotifier`

### hasListeners

public boolean hasListeners()

Angegeben von:
  `hasListeners` in Schnittstelle `org.eclipse.net4j.util.event.INotifier`

### getListeners

public org.eclipse.net4j.util.event.IListener[] getListeners()

Angegeben von:
  `getListeners` in Schnittstelle `org.eclipse.net4j.util.event.INotifier`

### getSourceSystem

public final CDOTransferSystem getSourceSystem()

### getTargetSystem

public final CDOTransferSystem getTargetSystem()

### getPathProvider

public final CDOTransfer.PathProvider getPathProvider()

Seit:
  4.3

### setPathProvider

public final void setPathProvider(CDOTransfer.PathProvider pathProvider)

Seit:
  4.3

### getModelTransferContext

public CDOTransfer.ModelTransferContext getModelTransferContext()

### getDefaultTransferType

public final CDOTransferType getDefaultTransferType()

### setDefaultTransferType

public final void setDefaultTransferType(CDOTransferType defaultTransferType)

### getUsedTransferTypes

public Set<CDOTransferType> getUsedTransferTypes()

### getRootMapping

public final CDOTransferMapping getRootMapping()

### getTargetPath

public IPath getTargetPath()

### setTargetPath

public void setTargetPath(IPath targetPath)

### setTargetPath

public void setTargetPath(String path)

### getMappingCount

public int getMappingCount()

### map

public CDOTransferMapping map(IPath sourcePath, IProgressMonitor monitor)

### map

public CDOTransferMapping map(String sourcePath, IProgressMonitor monitor)

### map

public CDOTransferMapping map(CDOTransferElement source, IProgressMonitor monitor)

### map

protected CDOTransferMapping map(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor)

### unmap

protected void unmap(CDOTransferMapping mapping)

### createMapping

protected CDOTransferMapping createMapping(CDOTransferElement source, CDOTransferMapping parent, IProgressMonitor monitor)

### createModelTransferContext

protected CDOTransfer.ModelTransferContext createModelTransferContext()

### getTransferType

protected CDOTransferType getTransferType(CDOTransferElement source)

### validate

protected void validate(CDOTransferMapping mapping, IProgressMonitor monitor)

### perform

public void perform()

### perform

public void perform(IProgressMonitor monitor)

### perform

protected void perform(CDOTransferMapping mapping, IProgressMonitor monitor)

### performFolder

protected void performFolder(CDOTransferMapping mapping, IProgressMonitor monitor)

### performModel

protected void performModel(CDOTransferMapping mapping, IProgressMonitor monitor)

### performBinary

protected void performBinary(CDOTransferMapping mapping, IProgressMonitor monitor)

### performText

protected void performText(CDOTransferMapping mapping, String encoding, IProgressMonitor monitor)

### childrenChanged

protected void childrenChanged(CDOTransferMapping mapping, CDOTransferMapping child, CDOTransfer.ChildrenChangedEvent.Kind kind)

### relativePathChanged

protected void relativePathChanged(CDOTransferMapping mapping, IPath oldPath, IPath newPath)

### transferTypeChanged

protected void transferTypeChanged(CDOTransferMapping mapping, CDOTransferType oldType, CDOTransferType newType)