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