Class NullContentAdapter

  • All Implemented Interfaces:
    IContentAdapter

    public class NullContentAdapter
    extends java.lang.Object
    implements IContentAdapter
    A content adapter that does nothing in terms of actual adaptation: it merely defines identity transformation between all IElements.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static IContentAdapter INSTANCE
      The sole instance of the null content adapter.
    • Field Detail

      • INSTANCE

        public static final IContentAdapter INSTANCE
        The sole instance of the null content adapter.
    • Method Detail

      • adapt

        public IElement adapt​(java.lang.Object element)
        Description copied from interface: IContentAdapter
        Returns the IElement that corresponds to the given element.
        Specified by:
        adapt in interface IContentAdapter
        Parameters:
        element - may be null
        Returns:
        the corresponding IElement, or null if none