Class JsonPersistenceRecipe
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.AbstractPersistenceRecipe
de.iip_ecosphere.platform.support.aas.basyx.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 Summary
Fields Modifier and Type Field Description private static de.iip_ecosphere.platform.support.FileFormatJSON -
Constructor Summary
Constructors Constructor Description JsonPersistenceRecipe()Creates a JSON persistence recipe. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.support.aas.basyx.AbstractPersistenceRecipe
addAsset, getSupportedFormats, isValidForWriting, transform
-
Field Details
-
JSON
private static final de.iip_ecosphere.platform.support.FileFormat JSON
-
-
Constructor Details
-
JsonPersistenceRecipe
JsonPersistenceRecipe()Creates a JSON persistence recipe.
-
-
Method Details
-
writeTo
public void writeTo(List<de.iip_ecosphere.platform.support.aas.Aas> aas, File file) throws IOException- Throws:
IOException
-
readFrom
- Throws:
IOException
-