Interface ISemanticTreeMapperSupport<M,L,R>
- Type Parameters:
M
- The type of the mapping objectL
- The type of the left bound of the mapping, as available in the leftTreeViewer
'sITreeContentProvider
R
- The type of the right bound of the mapping, as available in the rightTreeViewer
'sITreeContentProvider
public interface ISemanticTreeMapperSupport<M,L,R>
This interface is the binding between the business object that holds the mapping,
and the targeted bounds of the mapping.
It is used to resolve bounds of the mapping as they can be found in the trees, and also
to generate the business object that represents the mapping when user creates a new
one in the
TreeMapper
widget- Since:
- 0.1.0
-
Method Summary
Modifier and Type Method Description M
createSemanticMappingObject(L leftItem, R rightItem)
Creates the business object that represents the newly created mapping.L
resolveLeftItem(M semanticMappingObject)
R
resolveRightItem(M semanticMappingObject)
-
Method Details
-
createSemanticMappingObject
Creates the business object that represents the newly created mapping.- Parameters:
leftItem
- the left bound of the mapping, as available in the leftTreeViewer
and provided by theITreeContentProvider
rightItem
- the right bound of the mapping, as available in the leftTreeViewer
and provided by theITreeContentProvider
- Returns:
- the new object that represents your mapping, or null if this mapping is illegal (nothing happens then)
-
resolveLeftItem
- Parameters:
semanticMappingObject
- The mapping item- Returns:
- its left bound
-
resolveRightItem
- Parameters:
semanticMappingObject
- The maping item- Returns:
- its left bound
-