Class DefaultJsonFormatterFacility

  • All Implemented Interfaces:
    TokenContentsJsonSerializer, pl.edu.icm.unity.types.DescribedObject, pl.edu.icm.unity.types.NamedObject

    @Component
    public class DefaultJsonFormatterFacility
    extends java.lang.Object
    implements TokenContentsJsonSerializer
    Default formatter.
    Author:
    P.Piernik
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultJsonFormatterFacility

        public DefaultJsonFormatterFacility()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface pl.edu.icm.unity.types.DescribedObject
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface pl.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 interface TokenContentsJsonSerializer
        Throws:
        pl.edu.icm.unity.exceptions.EngineException