Package ch.raffael.meldioc.model
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ch.raffael.meldioc.model.messages.MessageSink
MessageSink.Tracker<S,T>, MessageSink.UniqueWrapper<S,T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Adaptor<S,T>adaptor()ch.raffael.meldioc.model.ConfigRef<T>configSupportedType(ch.raffael.meldioc.model.CElement<S,T> element)io.vavr.control.Option<ch.raffael.meldioc.model.ConfigRef<T>>configSupportedTypeOption(T type)io.vavr.control.Option<T>configType()static <S,T,A extends Adaptor<S,T> & MessageSink<S,T>>
Model<S,T>create(A adaptor)static <S,T>
Model<S,T>create(Adaptor<S,T> adaptor, MessageSink<S,T> messages)TenumType()TerrorType()voidmessage(Message<S,T> message)ModelType<S,T>modelOf(T type)io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<S,T>>objectMethods()TobjectType()TruntimeExceptionType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.raffael.meldioc.model.messages.MessageSink
tracker
-
-
-
-
Method Detail
-
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)
-
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.CElement<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.CElement<S,T> element)
-
configType
public io.vavr.control.Option<T> configType()
-
-