Package net.sf.basedb.util.listable
Interface SourceItemTransformerFactory
-
- All Known Implementing Classes:
AbstractSourceItemTransformerFactory
,SourceItemTransformerWithCache
,ToBioSourceSourceItemTransformerFactory
,ToDerivedBioAssaySourceItemTransformerFactory
,ToExtractSourceItemTransformerFactory
,ToPhysicalBioAssaySourceItemTransformerFactory
,ToRawBioAssaySourceItemTransformerFactory
,ToSampleSourceItemTransformerFactory
public interface SourceItemTransformerFactory
A source item transformer factory is responsible for creatingSourceItemTransformer
:s that can transform between the supportedgetSupportedSourceItems(SyncFilter.SourceItemTransform)
to the specifiedgetTargetItem()
.- Since:
- 3.5
- Author:
- Nicklas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceItemTransformer
create(Item sourceItemType, SyncFilter.SourceItemTransform transform)
Create a source item transformed that can transform between the given source item and thegetTargetItem()
.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.
-
-
-
Method Detail
-
getTargetItem
Item getTargetItem()
Get the target item type of this transformer factory. All transformers created by this factory are expected to have a matchingSourceItemTransformer.getTargetItemType()
.
-
getSupportedSourceItems
List<Item> getSupportedSourceItems(SyncFilter.SourceItemTransform transform)
Get the supported source item types when transforming in the specified direction. Thecreate(Item, SyncFilter.SourceItemTransform)
method should be able to create aSourceItemTransformer
for all of the item types returned by this method.
-
create
SourceItemTransformer create(Item sourceItemType, SyncFilter.SourceItemTransform transform)
Create a source item transformed that can transform between the given source item and thegetTargetItem()
. Calling this method with an unsupported combination should result in a null return value.
-
-