public interface IContentAdapter
For every Object
o
such that
adapt(o) != null
, the following must hold:
o.equals(getCorrespondingElement(adapt(o))
Likewise, for every IElement
e
such that getCorrespondingElement(e) != null
,
the following must hold:
e.equals(adapt(getCorrespondingElement(e))
This interface may be implemented by clients.
Modifier and Type | Method and Description |
---|---|
IElement |
adapt(java.lang.Object element)
Returns the
IElement that corresponds to the given element. |
java.lang.Object |
getCorrespondingElement(IElement element)
Returns the element that corresponds to the given
IElement . |
Copyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0