Interface IMarshaller

All Known Implementing Classes:
PointsModelMarshaller, TriggerableMapMarshaller

public interface IMarshaller
A marshaller is an extension to the MarshallerService. The marshaller service knows about common dawnsci types but optionally may be extended. Object class may be null, if it is not serializer class and deserializer class must also be provided. getMixinAnnotationType() and getMixinAnnotationClass() default to null, they must both return non-null if they are to be provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class of the deserializer which should have a no argument constructor
    default Class<?>
    The type, if any, of the mixin annotation This is the right hand side of SimpleModule.setMixInAnnotation(class, class);
    default Class<?>
    The type, if any, of the mixin annotation This is the left hand side of SimpleModule.setMixInAnnotation(class, class);
    The class which we will serialize and deserialise using the serializer class and the deserializer class.
    Class of the serializer which should have a no argument constructor
  • Method Details

    • getObjectClass

      Class<?> getObjectClass()
      The class which we will serialize and deserialise using the serializer class and the deserializer class.
      Returns:
      class to deal with
    • getSerializerClass

      Class<?> getSerializerClass()
      Class of the serializer which should have a no argument constructor
      Returns:
      the class
    • getDeserializerClass

      Class<?> getDeserializerClass()
      Class of the deserializer which should have a no argument constructor
      Returns:
      the class
    • getMixinAnnotationType

      default Class<?> getMixinAnnotationType()
      The type, if any, of the mixin annotation This is the left hand side of SimpleModule.setMixInAnnotation(class, class);
      Returns:
      class
    • getMixinAnnotationClass

      default Class<?> getMixinAnnotationClass()
      The type, if any, of the mixin annotation This is the right hand side of SimpleModule.setMixInAnnotation(class, class);
      Returns:
      class