X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fserialization%2FSerializerScheme.java;h=3a2e26a37739604be5b6a047f14417acbd48f81f;hb=48bb50bb6640506d1f150ca8e4fa5a6e878464be;hp=35079f37f659cf1b1452123ea4d8c97caabc261c;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/serialization/SerializerScheme.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/serialization/SerializerScheme.java index 35079f37f..3a2e26a37 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/serialization/SerializerScheme.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/serialization/SerializerScheme.java @@ -1,42 +1,42 @@ -package org.simantics.databoard.serialization; - -import org.simantics.databoard.binding.Binding; - -/** - * Serialization scheme creates serializers for binding requests. - * - * {@link DefaultSerializerFactory} is a serialization scheme that follows - * Databoard serialization format specification. It can create serialization - * for any binding. - * - * @author Toni Kalajainen - */ -public interface SerializerScheme { - - /** - * Get binding of a data type - * - * @param binding - * @return binding - * @throws SerializerConstructionException if data type is not supported - */ - Serializer getSerializer(Binding binding) throws SerializerConstructionException; - - /** - * Get binding of a data type - * - * @param binding - * @return binding - * @throws RuntimeSerializerConstructionException if data type is not supported - */ - Serializer getSerializerUnchecked(Binding binding) throws RuntimeSerializerConstructionException; - - /** - * Tests if the scheme supports a binding - * - * @param binding - * @return true if the binding is supported by the scheme - */ - boolean supportsBinding(Binding binding); - -} +package org.simantics.databoard.serialization; + +import org.simantics.databoard.binding.Binding; + +/** + * Serialization scheme creates serializers for binding requests. + * + * {@link DefaultSerializerFactory} is a serialization scheme that follows + * Databoard serialization format specification. It can create serialization + * for any binding. + * + * @author Toni Kalajainen + */ +public interface SerializerScheme { + + /** + * Get binding of a data type + * + * @param binding + * @return binding + * @throws SerializerConstructionException if data type is not supported + */ + Serializer getSerializer(Binding binding) throws SerializerConstructionException; + + /** + * Get binding of a data type + * + * @param binding + * @return binding + * @throws RuntimeSerializerConstructionException if data type is not supported + */ + Serializer getSerializerUnchecked(Binding binding) throws RuntimeSerializerConstructionException; + + /** + * Tests if the scheme supports a binding + * + * @param binding + * @return true if the binding is supported by the scheme + */ + boolean supportsBinding(Binding binding); + +}