org.simantics.databoard.serialization
Interface SerializationScheme

All Known Implementing Classes:
DefaultSerializerFactory, SerializerFactory

public interface SerializationScheme

Serialization scheme creates serializers for binding requests. DefaultSerializerFactory is a serialization scheme that follows Databoard serialization format specification. It can create serialization for any binding.

Author:
Toni Kalajainen

Method Summary
 Serializer getSerializer(Binding binding)
          Get binding of a data type
 Serializer getSerializerUnchecked(Binding binding)
          Get binding of a data type
 boolean supportsBinding(Binding binding)
          Tests if the scheme supports a binding
 

Method Detail

getSerializer

Serializer getSerializer(Binding binding)
                         throws SerializerConstructionException
Get binding of a data type

Parameters:
binding -
Returns:
binding
Throws:
SerializerConstructionException - if data type is not supported

getSerializerUnchecked

Serializer getSerializerUnchecked(Binding binding)
                                  throws RuntimeSerializerConstructionException
Get binding of a data type

Parameters:
binding -
Returns:
binding
Throws:
RuntimeSerializerConstructionException - if data type is not supported

supportsBinding

boolean supportsBinding(Binding binding)
Tests if the scheme supports a binding

Parameters:
binding -
Returns:
true if the binding is supported by the scheme