Class Jsonization.Serialize

java.lang.Object
aas_core.aas3_0.jsonization.Jsonization.Serialize
Enclosing class:
Jsonization

public static class Jsonization.Serialize extends Object
Serialize instances of meta-model classes to JSON elements.

Here is an example how to serialize an instance of IHasSemantics:


 IHasSemantics anInstance = new IHasSemantics(
     // ... some constructor arguments ...
 );
 JsonNode element = Jsonization.Serialize.toJsonObject(
     anInstance));
 
  • Constructor Details

    • Serialize

      public Serialize()
  • Method Details

    • toJsonObject

      public static com.fasterxml.jackson.databind.JsonNode toJsonObject(IClass that)
      Serialize an instance of the meta-model into a JSON object.
    • modellingKindToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode modellingKindToJsonValue(ModellingKind that)
      Serialize a literal of ModellingKind into a JSON string.
    • qualifierKindToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode qualifierKindToJsonValue(QualifierKind that)
      Serialize a literal of QualifierKind into a JSON string.
    • assetKindToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode assetKindToJsonValue(AssetKind that)
      Serialize a literal of AssetKind into a JSON string.
    • aasSubmodelElementsToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode aasSubmodelElementsToJsonValue(AasSubmodelElements that)
      Serialize a literal of AasSubmodelElements into a JSON string.
    • entityTypeToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode entityTypeToJsonValue(EntityType that)
      Serialize a literal of EntityType into a JSON string.
    • directionToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode directionToJsonValue(Direction that)
      Serialize a literal of Direction into a JSON string.
    • stateOfEventToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode stateOfEventToJsonValue(StateOfEvent that)
      Serialize a literal of StateOfEvent into a JSON string.
    • referenceTypesToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode referenceTypesToJsonValue(ReferenceTypes that)
      Serialize a literal of ReferenceTypes into a JSON string.
    • keyTypesToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode keyTypesToJsonValue(KeyTypes that)
      Serialize a literal of KeyTypes into a JSON string.
    • dataTypeDefXsdToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode dataTypeDefXsdToJsonValue(DataTypeDefXsd that)
      Serialize a literal of DataTypeDefXsd into a JSON string.
    • dataTypeIec61360ToJsonValue

      public static com.fasterxml.jackson.databind.JsonNode dataTypeIec61360ToJsonValue(DataTypeIec61360 that)
      Serialize a literal of DataTypeIec61360 into a JSON string.