Model Loader object It instantiates a model object from the yaml configuration.
Constructor and description |
---|
ModelLoader
(java.lang.Class<T> klass) Creates a new Model Registry for the given class. |
Type | Name and description |
---|---|
java.lang.String |
getIdent(java.lang.String filename) Get identifier for model from the the input file |
T |
load(java.io.File inputFile) Instantiate a new Model object by parsing contents of the input file (T) |
T |
load(java.lang.String filename) Instantiate a new Model object by parsing contents of the input file (T) |
T |
loadFromString(java.lang.String content) Instantiate a new Model using configuration content. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a new Model Registry for the given class.
klass
- the Model classGet identifier for model from the the input file
File
- name, file is present in the resources directoryInstantiate a new Model object by parsing contents of the input file (T)
File,
- file is present in the resources directoryInstantiate a new Model object by parsing contents of the input file (T)
File
- name, file is present in the resources directoryInstantiate a new Model using configuration content. We create a temp file and call load(filename)
Configuration
- content