Interface ChannelHandler

All Known Implementing Classes:
org.openhab.core.thing.internal.binding.generic.converter.AbstractTransformingChannelHandler, ColorChannelHandler, DimmerChannelHandler, FixedValueMappingChannelHandler, GenericChannelHandler, ImageChannelHandler, NumberChannelHandler, PlayerChannelHandler, RollershutterChannelHandler

@NonNullByDefault public interface ChannelHandler
The ChannelHandler defines the interface for converting received ChannelHandlerContent to States for posting updates to Channels and Commands to values for sending
Author:
Jan N. Klug - Initial contribution
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(@Nullable ChannelHandlerContent content)
    called to process a given content for this channel
    void
    send(Command command)
    called to send a command to this channel
  • Method Details

    • process

      void process(@Nullable ChannelHandlerContent content)
      called to process a given content for this channel
      Parameters:
      content - raw content to process (null results in UnDefType.UNDEF)
    • send

      void send(Command command)
      called to send a command to this channel
      Parameters:
      command -