Class TokenWithJsonContentsSerializer

  • All Implemented Interfaces:
    TokenContentsJsonSerializer, pl.edu.icm.unity.types.DescribedObject, pl.edu.icm.unity.types.NamedObject

    public abstract class TokenWithJsonContentsSerializer
    extends java.lang.Object
    implements TokenContentsJsonSerializer
    Base for all tokens where contents is storing byte[] serialized JSON. I.e. nearly a copy serializer.
    Author:
    P.Piernik
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenWithJsonContentsSerializer​(java.lang.String supportedType, java.lang.String description)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.lang.String getName()  
      com.fasterxml.jackson.databind.JsonNode toJson​(byte[] rawValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenWithJsonContentsSerializer

        public TokenWithJsonContentsSerializer​(java.lang.String supportedType,
                                               java.lang.String description)
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface pl.edu.icm.unity.types.DescribedObject
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface pl.edu.icm.unity.types.NamedObject
      • toJson

        public com.fasterxml.jackson.databind.JsonNode toJson​(byte[] rawValue)
                                                       throws pl.edu.icm.unity.exceptions.EngineException
        Specified by:
        toJson in interface TokenContentsJsonSerializer
        Throws:
        pl.edu.icm.unity.exceptions.EngineException