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 creating
SourceItemTransformer
:s that can transform between
the supported getSupportedSourceItems(SyncFilter.SourceItemTransform)
to the specified getTargetItem()
.- Since:
- 3.5
- Author:
- Nicklas
-
Method Summary
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 Details
-
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
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
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.
-