1 package org.simantics.databoard.serialization;
3 import org.simantics.databoard.binding.Binding;
6 * Serialization scheme creates serializers for binding requests.
8 * {@link DefaultSerializerFactory} is a serialization scheme that follows
9 * Databoard serialization format specification. It can create serialization
12 * @author Toni Kalajainen
14 public interface SerializerScheme {
17 * Get binding of a data type
21 * @throws SerializerConstructionException if data type is not supported
23 Serializer getSerializer(Binding binding) throws SerializerConstructionException;
26 * Get binding of a data type
30 * @throws RuntimeSerializerConstructionException if data type is not supported
32 Serializer getSerializerUnchecked(Binding binding) throws RuntimeSerializerConstructionException;
35 * Tests if the scheme supports a binding
38 * @return true if the binding is supported by the scheme
40 boolean supportsBinding(Binding binding);