Class TranslatedTextSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<de.intranda.metadata.multilanguage.IMetadataValue>
de.intranda.api.serializer.WebAnnotationMetadataValueSerializer
io.goobi.viewer.api.rest.serialization.TranslatedTextSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class TranslatedTextSerializer extends de.intranda.api.serializer.WebAnnotationMetadataValueSerializer
Implementation of WebAnnotationMetadataValueSerializer which always writes the value as json-object, never as string. This was, language info is always preserved
Author:
florian
  • Nested Class Summary

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

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    allTranslationsEqual(de.intranda.metadata.multilanguage.MultiLanguageMetadataValue element)
    Always assume all translations are unique to write full translation info.

    Methods inherited from class de.intranda.api.serializer.WebAnnotationMetadataValueSerializer

    serialize

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

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

    • TranslatedTextSerializer

      public TranslatedTextSerializer()
  • Method Details

    • allTranslationsEqual

      protected boolean allTranslationsEqual(de.intranda.metadata.multilanguage.MultiLanguageMetadataValue element)
      Always assume all translations are unique to write full translation info.
      Overrides:
      allTranslationsEqual in class de.intranda.api.serializer.WebAnnotationMetadataValueSerializer