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.FileFiltergetDialogFileFilter()
-
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:
deserializein interfaceorg.opentcs.guing.persistence.ModelFileReader- Throws:
java.io.IOException
-
getDialogFileFilter
public javax.swing.filechooser.FileFilter getDialogFileFilter()- Specified by:
getDialogFileFilterin interfaceorg.opentcs.guing.persistence.ModelFileReader
-