Class TokenWithJsonContentsSerializer
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.json.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)
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfacepl.edu.icm.unity.types.DescribedObject
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacepl.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 interfaceTokenContentsJsonSerializer
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
-