]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandSpec.java
Improved Bindings.getBinding(Class) caching for Datatype.class
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / channel / CommandSpec.java
1 package org.simantics.databoard.channel;
2
3 import org.simantics.databoard.binding.mutable.Variant;
4 import org.simantics.databoard.type.Datatype;
5
6 /**
7  * This class carries a specification for a single command. 
8  *
9  * @author Toni Kalajainen <toni.kalajainen@iki.fi>
10  */
11 public class CommandSpec {
12
13         /** Well-known id of the service */
14         public final Variant commandId;
15         
16         /** Description of the request data. Typically a record type. */
17         public final Datatype requestType;
18         
19         /** Description of the response data. Typically a record type. */
20         public final Datatype responseType;
21         
22         /** Description of the error data. Typically a union type. */
23         public final Datatype errorType;
24         
25         public CommandSpec(Variant commandId, Datatype requestType, Datatype responseType, Datatype errorType) {
26                 this.commandId = commandId;
27                 this.requestType = requestType;
28                 this.responseType = responseType;
29                 this.errorType = errorType;
30         }
31         
32 }