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 TypeMethodDescriptionClass<?> Class of the deserializer which should have a no argument constructordefault 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);Class<?> The class which we will serialize and deserialise using the serializer class and the deserializer class.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
The type, if any, of the mixin annotation This is the left hand side of SimpleModule.setMixInAnnotation(class, class);- Returns:
- class
-
getMixinAnnotationClass
The type, if any, of the mixin annotation This is the right hand side of SimpleModule.setMixInAnnotation(class, class);- Returns:
- class
-