Class UnifiedModelReader

java.lang.Object
org.opentcs.guing.persistence.unified.UnifiedModelReader
All Implemented Interfaces:
org.opentcs.guing.persistence.ModelFileReader

public class UnifiedModelReader
extends java.lang.Object
implements org.opentcs.guing.persistence.ModelFileReader
Implementation of [@link ModelFileReader} to deserialize a PlantModelCreationTO from a xml file.
  • Constructor Summary

    Constructors 
    Constructor Description
    UnifiedModelReader​(org.opentcs.util.persistence.ModelParser modelParser)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<org.opentcs.access.to.model.PlantModelCreationTO> deserialize​(java.io.File file)  
    javax.swing.filechooser.FileFilter getDialogFileFilter()  

    Methods inherited from class java.lang.Object

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

    • UnifiedModelReader

      @Inject public UnifiedModelReader​(org.opentcs.util.persistence.ModelParser modelParser)
  • Method Details

    • deserialize

      public java.util.Optional<org.opentcs.access.to.model.PlantModelCreationTO> deserialize​(java.io.File file) throws java.io.IOException
      Specified by:
      deserialize in interface org.opentcs.guing.persistence.ModelFileReader
      Throws:
      java.io.IOException
    • getDialogFileFilter

      public javax.swing.filechooser.FileFilter getDialogFileFilter()
      Specified by:
      getDialogFileFilter in interface org.opentcs.guing.persistence.ModelFileReader