Class Model<S,T>

java.lang.Object
ch.raffael.meldioc.model.Model<S,T>
All Implemented Interfaces:
MessageSink<S,T>

public final class Model<S,T> extends Object implements MessageSink<S,T>
The Meld model.
  • Method Details

    • create

      public static <S, T> Model<S,T> create(Adaptor<S,T> adaptor, MessageSink<S,T> messages)
    • create

      public static <S, T, A extends Adaptor<S, T> & MessageSink<S, T>> Model<S,T> create(A adaptor)
    • modelOf

      public ModelType<S,T> modelOf(T type)
    • adaptor

      public Adaptor<S,T> adaptor()
    • objectType

      public T objectType()
    • enumType

      public T enumType()
    • runtimeExceptionType

      public T runtimeExceptionType()
    • throwableType

      public T throwableType()
    • errorType

      public T errorType()
    • objectMethods

      public io.vavr.collection.Seq<SrcElement<S,T>> objectMethods()
    • configSupportedTypeOption

      public io.vavr.control.Option<ConfigRef<T>> configSupportedTypeOption(T type)
    • configSupportedType

      public ConfigRef<T> configSupportedType(SrcElement<S,T> element)
    • configType

      public io.vavr.control.Option<T> configType()
    • message

      public void message(Message<S,T> message)
      Specified by:
      message in interface MessageSink<S,T>