public abstract class AbstractSourceItemTransformerFactory extends java.lang.Object implements SourceItemTransformerFactory
Modifier and Type | Field and Description |
---|---|
private java.util.List<Item> |
childToParent |
private java.util.List<Item> |
parentToChild |
private Item |
target |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSourceItemTransformerFactory(Item target,
Item[] parentToChild,
Item[] childToParent)
Create a new instance supports transformation between the given
source items and target item.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Item> |
getSupportedSourceItems(SyncFilter.SourceItemTransform transform)
Get the supported source item types when transforming in the specified
direction.
|
Item |
getTargetItem()
Get the target item type of this transformer factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
private final Item target
private final java.util.List<Item> parentToChild
private final java.util.List<Item> childToParent
protected AbstractSourceItemTransformerFactory(Item target, Item[] parentToChild, Item[] childToParent)
target
- The supported target item typeparentToChild
- The supported source item types for SyncFilter.SourceItemTransform.PARENT_TO_CHILD
transformchildToParent
- The supported source item types for SyncFilter.SourceItemTransform.CHILD_TO_PARENT
transformpublic Item getTargetItem()
SourceItemTransformerFactory
SourceItemTransformer.getTargetItemType()
.getTargetItem
in interface SourceItemTransformerFactory
public java.util.List<Item> getSupportedSourceItems(SyncFilter.SourceItemTransform transform)
SourceItemTransformerFactory
SourceItemTransformerFactory.create(Item, SyncFilter.SourceItemTransform)
method should
be able to create a SourceItemTransformer
for all of the item types
returned by this method.getSupportedSourceItems
in interface SourceItemTransformerFactory