Class AbstractBaSyxAasFactory.BaSyxPersistenceRecipe

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.AbstractBaSyxAasFactory.BaSyxPersistenceRecipe
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.PersistenceRecipe
Enclosing class:
AbstractBaSyxAasFactory

private class AbstractBaSyxAasFactory.BaSyxPersistenceRecipe extends Object implements de.iip_ecosphere.platform.support.aas.PersistenceRecipe
A generic, delegating persistence recipe based on those registered in AbstractBaSyxAasFactory.registerPersistenceRecipe(PersistenceRecipe).
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.PersistenceRecipe

    de.iip_ecosphere.platform.support.aas.PersistenceRecipe.FileResource
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private de.iip_ecosphere.platform.support.aas.PersistenceRecipe
    Finds a matching PersistenceRecipe against the known recipes and their file formats.
    Collection<de.iip_ecosphere.platform.support.FileFormat>
     
    List<de.iip_ecosphere.platform.support.aas.Aas>
    readFrom(File file)
     
    void
    writeTo(List<de.iip_ecosphere.platform.support.aas.Aas> aas, File thumbnail, List<de.iip_ecosphere.platform.support.aas.PersistenceRecipe.FileResource> resources, File file)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.support.aas.PersistenceRecipe

    writeTo
  • Constructor Details

    • BaSyxPersistenceRecipe

      private BaSyxPersistenceRecipe()
  • Method Details

    • findMatching

      private de.iip_ecosphere.platform.support.aas.PersistenceRecipe findMatching(File file)
      Finds a matching PersistenceRecipe against the known recipes and their file formats.
      Parameters:
      file - the file to look for
      Returns:
      the persistence recipe
      Throws:
      IllegalArgumentException - if there is no matching file format/recipe
    • writeTo

      public void writeTo(List<de.iip_ecosphere.platform.support.aas.Aas> aas, File thumbnail, List<de.iip_ecosphere.platform.support.aas.PersistenceRecipe.FileResource> resources, File file) throws IOException
      Specified by:
      writeTo in interface de.iip_ecosphere.platform.support.aas.PersistenceRecipe
      Throws:
      IOException
    • readFrom

      public List<de.iip_ecosphere.platform.support.aas.Aas> readFrom(File file) throws IOException
      Specified by:
      readFrom in interface de.iip_ecosphere.platform.support.aas.PersistenceRecipe
      Throws:
      IOException
    • getSupportedFormats

      public Collection<de.iip_ecosphere.platform.support.FileFormat> getSupportedFormats()
      Specified by:
      getSupportedFormats in interface de.iip_ecosphere.platform.support.aas.PersistenceRecipe