org.eclipse.handly.model.adapter

## Interface ICorrespondingElementProvider

-     public interface ICorrespondingElementProvider

  Defines a one-to-one mapping (injection) of elements from a Handly-based model to elements in some other model.

  For every `IElement` `e` such that `getCorrespondingElement(e) != null`, the following must hold:

          e.equals(getCorrespondingElement(e).getAdapter(IElement.class))

  This interface may be implemented by clients.

  See Also:
    `DefaultContentAdapter`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.eclipse.core.runtime.IAdaptable` | `getCorrespondingElement(IElement element)` Returns the element that corresponds to the given `IElement`.

- - ### Method Detail

    - #### getCorrespondingElement

          org.eclipse.core.runtime.IAdaptable getCorrespondingElement(IElement element)

      Returns the element that corresponds to the given `IElement`.
      Parameters:
        `element` - an `IElement` (may be `null`)
      Returns:
        the corresponding element, or `null` if none

Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0