Class TokenWithJsonContentsSerializer

java.lang.Object
pl.edu.icm.unity.engine.api.utils.json.TokenWithJsonContentsSerializer
All Implemented Interfaces:
pl.edu.icm.unity.base.describedObject.DescribedObject, pl.edu.icm.unity.base.describedObject.NamedObject, TokenContentsJsonSerializer

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 Details

    • TokenWithJsonContentsSerializer

      public TokenWithJsonContentsSerializer(String supportedType, String description)
  • Method Details

    • getDescription

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

      public String getName()
      Specified by:
      getName in interface pl.edu.icm.unity.base.describedObject.NamedObject
    • toJson

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