Interface Transformer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasBackwardMapping()
      Specify if this transformer has a mapping from the transformed version to the original version or not.
      boolean hasForwardMapping()
      Specify if this transformer has a mapping from the original version to the transformed version or not.
      java.lang.Object originalVersionOf​(java.lang.Object transformedObject)
      Return the original version of given object in the transformed graph.
      java.lang.Object transformedVersionOf​(java.lang.Object originalObject)
      Return the transformed version of a given object in the original graph.
    • Method Detail

      • hasBackwardMapping

        boolean hasBackwardMapping()
        Specify if this transformer has a mapping from the transformed version to the original version or not.
        Returns:
        True if the implementation of the transformer supports backward mapping.
      • hasForwardMapping

        boolean hasForwardMapping()
        Specify if this transformer has a mapping from the original version to the transformed version or not.
        Returns:
        True if the implementation of the transformer supports forward mapping.
      • originalVersionOf

        java.lang.Object originalVersionOf​(java.lang.Object transformedObject)
        Return the original version of given object in the transformed graph. The method should be defined in implementing classes to return the original version of the given object. The transformed objects and a mapping between the original and the transformed objects are created during the transformation process in a specific algorithm (strategy).
        Parameters:
        transformedObject - The given object in the transformed graph.
        Returns:
        Return the original version the given object.
      • transformedVersionOf

        java.lang.Object transformedVersionOf​(java.lang.Object originalObject)
        Return the transformed version of a given object in the original graph. The method should be defined in implementing classes to return the transformed version of the given object. The transformed objects and a mapping between the original and the transformed objects are created during the transformation process in a specific algorithm (strategy).
        Parameters:
        originalObject - The given object in the original graph.
        Returns:
        Return the transformed version of the given object.