Class JsonDeserializer

    • Field Detail

      • mapper

        protected com.fasterxml.jackson.databind.json.JsonMapper mapper
      • typeResolver

        protected com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver typeResolver
      • customDeserializers

        protected static Map<Class<?>,​com.fasterxml.jackson.databind.JsonDeserializer> customDeserializers
    • Constructor Detail

      • JsonDeserializer

        public JsonDeserializer()
    • Method Detail

      • buildMapper

        protected void buildMapper()
      • buildCustomDeserializerModule

        protected com.fasterxml.jackson.databind.module.SimpleModule buildCustomDeserializerModule()
      • buildEnumModule

        protected com.fasterxml.jackson.databind.module.SimpleModule buildEnumModule()
      • buildImplementationModule

        protected com.fasterxml.jackson.databind.module.SimpleModule buildImplementationModule()
      • readReferable

        public <T extends io.adminshell.aas.v3.model.Referable> T readReferable​(String referable,
                                                                                Class<T> outputClass)
                                                                         throws DeserializationException
        Description copied from interface: ReferableDeserializer
        Deserializes a given string into an instance of the given Referable
        Specified by:
        readReferable in interface ReferableDeserializer
        Type Parameters:
        T - type of the returned element
        Parameters:
        referable - a string representation of the Referable
        outputClass - most specific class of the given Referable
        Returns:
        an instance of the referable
        Throws:
        DeserializationException
      • readReferables

        public <T extends io.adminshell.aas.v3.model.Referable> List<T> readReferables​(String referables,
                                                                                       Class<T> outputClass)
                                                                                throws DeserializationException
        Description copied from interface: ReferableDeserializer
        Deserializes a given string into an instance of a list of the given Referables
        Specified by:
        readReferables in interface ReferableDeserializer
        Type Parameters:
        T - type of the returned element
        Parameters:
        referables - a string representation of an array of Referables
        outputClass - most specific class of the given Referable
        Returns:
        an instance of a list of the referables
        Throws:
        DeserializationException