Class TranslationDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider

    public class TranslationDeserializer
    extends com.fasterxml.jackson.databind.JsonDeserializer<Translation>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Translation deserialize​(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext ctxt)  
      Object deserializeWithType​(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)  
      protected Locale parseLanguageTag​(String language)
      in case locale has been parsed via toString (that uses _ as separator instead of -)
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
    • Constructor Detail

      • TranslationDeserializer

        public TranslationDeserializer()
    • Method Detail

      • deserialize

        public Translation deserialize​(com.fasterxml.jackson.core.JsonParser jsonParser,
                                       com.fasterxml.jackson.databind.DeserializationContext ctxt)
                                throws IOException
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Translation>
        Throws:
        IOException
      • deserializeWithType

        public Object deserializeWithType​(com.fasterxml.jackson.core.JsonParser p,
                                          com.fasterxml.jackson.databind.DeserializationContext ctxt,
                                          com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
                                   throws IOException
        Overrides:
        deserializeWithType in class com.fasterxml.jackson.databind.JsonDeserializer<Translation>
        Throws:
        IOException
      • parseLanguageTag

        protected Locale parseLanguageTag​(String language)
        in case locale has been parsed via toString (that uses _ as separator instead of -)