Interface JMadModelDefinitionImporter
-
- All Known Implementing Classes:
JMadModelDefinitionImporterImpl
public interface JMadModelDefinitionImporter
This is the interface of a class which can import modelDefinitions from files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JMadModelDefinition
importModelDefinition(java.io.File file)
This is a convenience method an in principle a shortcut to the first occurence intimportModelDefinitions(File)
.java.util.Collection<JMadModelDefinition>
importModelDefinitions(java.io.File file)
returns all model definitions contained in the given file.
-
-
-
Method Detail
-
importModelDefinitions
java.util.Collection<JMadModelDefinition> importModelDefinitions(java.io.File file)
returns all model definitions contained in the given file. If this is an xml file then this gives clearly only one. Nevertheless in a zip there might be multiple.- Parameters:
file
- the file from which to load the model definitions- Returns:
- the model definitions
-
importModelDefinition
JMadModelDefinition importModelDefinition(java.io.File file)
This is a convenience method an in principle a shortcut to the first occurence intimportModelDefinitions(File)
. If there are multiple definitions in the file then the result might be random!- Parameters:
file
- the file from which to load the model definition- Returns:
- one model definition
-
-