Class TokenWithJsonContentsSerializer

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

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

      • TokenWithJsonContentsSerializer

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

      • getDescription

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

        public 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