Class JsonPersistenceRecipe

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.PersistenceRecipe

    public class JsonPersistenceRecipe
    extends AbstractPersistenceRecipe
    Implements the JSON persistence recipe. Unfortunately, so far, BaSyx only supports writing non-connected AAS as far as we can see.
    Author:
    Holger Eichelberger, SSE
    • Field Detail

      • JSON

        private static final de.iip_ecosphere.platform.support.FileFormat JSON
    • Constructor Detail

      • JsonPersistenceRecipe

        JsonPersistenceRecipe()
        Creates a JSON persistence recipe.
    • Method Detail

      • writeTo

        public void writeTo​(java.util.List<de.iip_ecosphere.platform.support.aas.Aas> aas,
                            java.io.File file)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readFrom

        public java.util.List<de.iip_ecosphere.platform.support.aas.Aas> readFrom​(java.io.File file)
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException