Class DefaultJsonFormatterFacility
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.json.DefaultJsonFormatterFacility
-
- All Implemented Interfaces:
TokenContentsJsonSerializer
,DescribedObject
,NamedObject
@Component public class DefaultJsonFormatterFacility extends Object implements TokenContentsJsonSerializer
Default formatter.- Author:
- P.Piernik
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonFormatterFacility()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getName()
com.fasterxml.jackson.databind.JsonNode
toJson(byte[] rawValue)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDescribedObject
- Returns:
- human readable description of the object.
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
toJson
public com.fasterxml.jackson.databind.JsonNode toJson(byte[] rawValue) throws EngineException
- Specified by:
toJson
in interfaceTokenContentsJsonSerializer
- Throws:
EngineException
-
-