-/*******************************************************************************\r
- * Copyright (c) 2010 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * Copyright (c) 2010 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
package org.simantics.databoard.method;
-import org.simantics.databoard.Bindings;\r
-import org.simantics.databoard.Datatypes;\r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.databoard.type.Component;\r
-import org.simantics.databoard.type.Datatype;\r
-import org.simantics.databoard.type.UnionType;\r
+import org.simantics.databoard.Bindings;
+import org.simantics.databoard.Datatypes;
+import org.simantics.databoard.binding.Binding;
+import org.simantics.databoard.type.Component;
+import org.simantics.databoard.type.Datatype;
+import org.simantics.databoard.type.UnionType;
public class MethodTypeDefinition implements Comparable<MethodTypeDefinition> {
-\r
- public static Binding BINDING = Bindings.getBindingUnchecked( MethodTypeDefinition.class );\r
+
+ public static Binding BINDING = Bindings.getBindingUnchecked( MethodTypeDefinition.class );
String name;
MethodType type;
Datatype res = type.getResponseType();
Datatype req = type.getRequestType();
UnionType err = (UnionType) type.getErrorType();
-\r
- sb.append("method ");\r
- sb.append(name);\r
- sb.append(" : ");\r
- sb.append(req.toSingleLineString());\r
- sb.append(" -> ");\r
+
+ sb.append("method ");
+ sb.append(name);
+ sb.append(" : ");
+ sb.append(req.toSingleLineString());
+ sb.append(" -> ");
if (res.equals(void_))
sb.append("void");