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 java.lang.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()
    • errorType

      public T errorType()
    • objectMethods

      public io.vavr.collection.Seq<ch.raffael.meldioc.model.SrcElement<S,​T>> objectMethods()
    • configSupportedTypeOption

      public io.vavr.control.Option<ch.raffael.meldioc.model.ConfigRef<T>> configSupportedTypeOption​(T type)
    • configSupportedType

      public ch.raffael.meldioc.model.ConfigRef<T> configSupportedType​(ch.raffael.meldioc.model.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>