Class JsonSerializer
- java.lang.Object
-
- io.adminshell.aas.v3.dataformat.json.JsonSerializer
-
- All Implemented Interfaces:
Serializer
public class JsonSerializer extends Object implements Serializer
Class for serializing an instance of AssetAdministrationShellEnvironment to JSON.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.json.JsonMappermapper-
Fields inherited from interface io.adminshell.aas.v3.dataformat.Serializer
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description JsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.module.SimpleModulebuildCustomSerializerModule()protected com.fasterxml.jackson.databind.module.SimpleModulebuildEnumModule()protected voidbuildMapper()Stringwrite(io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment aasEnvironment)-
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.Serializer
write, write, write, write
-
-
-
-
Method Detail
-
buildMapper
protected void buildMapper()
-
buildCustomSerializerModule
protected com.fasterxml.jackson.databind.module.SimpleModule buildCustomSerializerModule()
-
buildEnumModule
protected com.fasterxml.jackson.databind.module.SimpleModule buildEnumModule()
-
write
public String write(io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment aasEnvironment) throws SerializationException
- Specified by:
writein interfaceSerializer- Throws:
SerializationException
-
-