Package services.gui

Class StudyDeserializer


  • public class StudyDeserializer
    extends java.lang.Object
    Deserialization of an JSON file to a study. The study's JSON string can be in different versions of the study to support older JATOS' versions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Study deserialize​(java.nio.file.Path file)
      Accepts a file with the content of a JSON String and turns the data object within this JSON String into an object of type Study.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StudyDeserializer

        public StudyDeserializer()
    • Method Detail

      • deserialize

        public Study deserialize​(java.nio.file.Path file)
                          throws java.io.IOException
        Accepts a file with the content of a JSON String and turns the data object within this JSON String into an object of type Study. It can handle different versions of the study model. The version is determined by the version field in the JSON string.
        Throws:
        java.io.IOException