Interface ISemanticTreeMapperSupport<M,​L,​R>

Type Parameters:
M - The type of the mapping object
L - The type of the left bound of the mapping, as available in the left TreeViewer's ITreeContentProvider
R - The type of the right bound of the mapping, as available in the right TreeViewer's ITreeContentProvider

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 Details

    • createSemanticMappingObject

      M createSemanticMappingObject​(L leftItem, R rightItem)
      Creates the business object that represents the newly created mapping.
      Parameters:
      leftItem - the left bound of the mapping, as available in the left TreeViewer and provided by the ITreeContentProvider
      rightItem - the right bound of the mapping, as available in the left TreeViewer and provided by the ITreeContentProvider
      Returns:
      the new object that represents your mapping, or null if this mapping is illegal (nothing happens then)
    • resolveLeftItem

      L resolveLeftItem​(M semanticMappingObject)
      Parameters:
      semanticMappingObject - The mapping item
      Returns:
      its left bound
    • resolveRightItem

      R resolveRightItem​(M semanticMappingObject)
      Parameters:
      semanticMappingObject - The maping item
      Returns:
      its left bound