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
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfacepl.edu.icm.unity.base.describedObject.DescribedObject
-
getName
- Specified by:
getName
in interfacepl.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 interfaceTokenContentsJsonSerializer
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-