Interface ModelDefinitionPersistenceService
-
- All Superinterfaces:
PersistenceService<JMadModelDefinition>
- All Known Implementing Classes:
AbstractModelDefinitionPersistenceService
,MadxScriptModelDefinitionPersistenceService
,XmlModelDefinitionPersistenceService
public interface ModelDefinitionPersistenceService extends PersistenceService<JMadModelDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.io.File
save(JMadModelDefinition modelDefinition, java.io.File file)
Write an object to the given xmlFile, the object/class must provide the appropriate annotations for writing the XML...default void
save(JMadModelDefinition modelDefinition, java.io.OutputStream outStream)
Write an object as xml to the given output stream.java.io.File
save(JMadModelDefinitionExportRequest exportRequest, java.io.File file)
void
save(JMadModelDefinitionExportRequest exportRequest, java.io.OutputStream outStream)
-
Methods inherited from interface cern.accsoft.steering.jmad.util.xml.PersistenceService
clone, getFileExtension, isCorrectFileName, load, load
-
-
-
-
Method Detail
-
save
java.io.File save(JMadModelDefinitionExportRequest exportRequest, java.io.File file) throws PersistenceServiceException
- Throws:
PersistenceServiceException
-
save
void save(JMadModelDefinitionExportRequest exportRequest, java.io.OutputStream outStream) throws PersistenceServiceException
- Throws:
PersistenceServiceException
-
save
default java.io.File save(JMadModelDefinition modelDefinition, java.io.File file) throws PersistenceServiceException
Description copied from interface:PersistenceService
Write an object to the given xmlFile, the object/class must provide the appropriate annotations for writing the XML...- Specified by:
save
in interfacePersistenceService<JMadModelDefinition>
- Parameters:
modelDefinition
- Object to write to XMLfile
- the file to write to...- Returns:
- the file where it was saved in the end ..
- Throws:
PersistenceServiceException
- if the serializing fails
-
save
default void save(JMadModelDefinition modelDefinition, java.io.OutputStream outStream) throws PersistenceServiceException
Description copied from interface:PersistenceService
Write an object as xml to the given output stream.- Specified by:
save
in interfacePersistenceService<JMadModelDefinition>
- Parameters:
modelDefinition
- the object to writeoutStream
- the output stream to write to- Throws:
PersistenceServiceException
- if something fails
-
-