--- /dev/null
+/*******************************************************************************\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
+package org.simantics.databoard.binding.factory;
+
+import org.simantics.databoard.binding.Binding;\r
+import org.simantics.databoard.binding.error.BindingConstructionException;\r
+import org.simantics.databoard.binding.error.RuntimeBindingConstructionException;\r
+import org.simantics.databoard.type.Datatype;\r
+
+public interface BindingScheme {
+
+ /**
+ * Get binding of a data type
+ *
+ * @param type data type
+ * @return binding
+ * @throws BindingConstructionException if data type is not supported
+ */
+ Binding getBinding(Datatype type) throws BindingConstructionException;
+\r
+ /**\r
+ * Get binding of a data type\r
+ * \r
+ * @param type data type\r
+ * @return binding \r
+ * @throws RuntimeBindingConstructionException if data type is not supported\r
+ */\r
+ Binding getBindingUnchecked(Datatype type) throws RuntimeBindingConstructionException;\r
+
+ /**
+ * Tests if the scheme supports a type
+ *
+ * @param type
+ * @return true if the type is supported by the scheme
+ */
+ boolean supportsType(Datatype type);
+
+}
+