Package org.eclipse.handly.model.adapter
Class NullContentAdapter
java.lang.Object
org.eclipse.handly.model.adapter.NullContentAdapter
- All Implemented Interfaces:
IContentAdapter
A content adapter that does nothing in terms of actual adaptation:
it merely defines identity transformation between all
IElements.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IContentAdapterThe sole instance of the null content adapter. -
Method Summary
-
Field Details
-
INSTANCE
The sole instance of the null content adapter.
-
-
Method Details
-
adapt
Description copied from interface:IContentAdapterReturns theIElementthat corresponds to the given element.- Specified by:
adaptin interfaceIContentAdapter- Parameters:
element- may benull- Returns:
- the corresponding
IElement, ornullif none
-
getCorrespondingElement
Description copied from interface:IContentAdapterReturns the element that corresponds to the givenIElement.- Specified by:
getCorrespondingElementin interfaceIContentAdapter- Parameters:
element- anIElement(may benull)- Returns:
- the corresponding element, or
nullif none
-