Package org.eclipse.handly.model.adapter
Interface IContentAdapter
-
- All Known Implementing Classes:
DefaultContentAdapter,NullContentAdapter
public interface IContentAdapterDefines a one-to-one correspondence (bijection) between elements of a Handly-based model and elements of some other model.For every
Objectosuch thatadapt(o) != null, the following must hold:o.equals(getCorrespondingElement(adapt(o))
Likewise, for every
IElementesuch thatgetCorrespondingElement(e) != null, the following must hold:e.equals(adapt(getCorrespondingElement(e))
This interface may be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IElementadapt(java.lang.Object element)Returns theIElementthat corresponds to the given element.java.lang.ObjectgetCorrespondingElement(IElement element)Returns the element that corresponds to the givenIElement.
-