Package nz.org.riskscape.engine.ini
Class IniFileModelBuilder2
java.lang.Object
nz.org.riskscape.engine.ini.IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.model.IdentifiedModel>
nz.org.riskscape.engine.ini.IniFileModelBuilder2
- All Implemented Interfaces:
IdentifiedObjectBuilder<nz.org.riskscape.engine.model.IdentifiedModel>
public class IniFileModelBuilder2
extends IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.model.IdentifiedModel>
Builds a framework-based model from an INI definition.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.ini.IdentifiedObjectBuilder
IdentifiedObjectBuilder.Base<T extends nz.org.riskscape.engine.Identified>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel>
Builds the item based on the given INI section.nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel>
buildModel
(String modelName, nz.org.riskscape.config.ConfigSection section) Builds a model from an INI file sectionMethods inherited from class nz.org.riskscape.engine.ini.IdentifiedObjectBuilder.Base
getIdentifiedClass, getKeyword
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.ini.IdentifiedObjectBuilder
addToProject
-
Field Details
-
MODEL_KEY
- See Also:
-
-
Constructor Details
-
IniFileModelBuilder2
public IniFileModelBuilder2(nz.org.riskscape.engine.Project project)
-
-
Method Details
-
buildModel
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel> buildModel(String modelName, nz.org.riskscape.config.ConfigSection section) Builds a model from an INI file section
-
build
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel> build(String id, nz.org.riskscape.config.ConfigSection section) Description copied from interface:IdentifiedObjectBuilder
Builds the item based on the given INI section.
- Returns:
- the item successfully built, or any problems that occurred.
-