Class JsonDeserializer
- java.lang.Object
-
- io.adminshell.aas.v3.dataformat.json.JsonDeserializer
-
- All Implemented Interfaces:
Deserializer
public class JsonDeserializer extends Object implements Deserializer
Class for deserializing/parsing AAS JSON documents.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Class<?>,com.fasterxml.jackson.databind.JsonDeserializer>customDeserializersprotected com.fasterxml.jackson.databind.json.JsonMappermapperprotected com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolvertypeResolver-
Fields inherited from interface io.adminshell.aas.v3.dataformat.Deserializer
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description JsonDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.module.SimpleModulebuildCustomDeserializerModule()protected com.fasterxml.jackson.databind.module.SimpleModulebuildEnumModule()protected com.fasterxml.jackson.databind.module.SimpleModulebuildImplementationModule()protected voidbuildMapper()io.adminshell.aas.v3.model.AssetAdministrationShellEnvironmentread(String value)<T> voiduseImplementation(Class<T> aasInterface, Class<? extends T> implementation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.adminshell.aas.v3.dataformat.Deserializer
read, read, read, read
-
-
-
-
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()
-
read
public io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment read(String value) throws DeserializationException
- Specified by:
readin interfaceDeserializer- Throws:
DeserializationException
-
useImplementation
public <T> void useImplementation(Class<T> aasInterface, Class<? extends T> implementation)
- Specified by:
useImplementationin interfaceDeserializer
-
-