X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FCommandSpec.java;fp=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FCommandSpec.java;h=2763c595fe04cf07644cc0af0981308d0a51d02d;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandSpec.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandSpec.java new file mode 100644 index 000000000..2763c595f --- /dev/null +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandSpec.java @@ -0,0 +1,32 @@ +package org.simantics.databoard.channel; + +import org.simantics.databoard.binding.mutable.Variant; +import org.simantics.databoard.type.Datatype; + +/** + * This class carries a specification for a single command. + * + * @author Toni Kalajainen + */ +public class CommandSpec { + + /** Well-known id of the service */ + public final Variant commandId; + + /** Description of the request data. Typically a record type. */ + public final Datatype requestType; + + /** Description of the response data. Typically a record type. */ + public final Datatype responseType; + + /** Description of the error data. Typically a union type. */ + public final Datatype errorType; + + public CommandSpec(Variant commandId, Datatype requestType, Datatype responseType, Datatype errorType) { + this.commandId = commandId; + this.requestType = requestType; + this.responseType = responseType; + this.errorType = errorType; + } + +}