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 StringgetDescription()StringgetName()com.fasterxml.jackson.databind.JsonNodetoJson(byte[] rawValue)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDescribedObject- Returns:
- human readable description of the object.
-
getName
public String getName()
- Specified by:
getNamein 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:
toJsonin interfaceTokenContentsJsonSerializer- Throws:
EngineException
-
-