Package org.nuiton.eugene
Class ModelHelper
- java.lang.Object
-
- org.nuiton.eugene.ModelHelper
-
public class ModelHelper extends Object
Help methods around model.- Since:
- 2.6.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelHelper.ModelInputType
Define type onf input model known by eugene.static class
ModelHelper.ModelType
Define type of model known by eugene
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ModelReader<?>>
modelReaders
All available writers introspects via plexus.protected Map<String,Model>
models
All available models (obtain by plexus, keys are plexus roles, values are a instance of corresponding model).
-
Constructor Summary
Constructors Constructor Description ModelHelper(Map<String,Model> models, Map<String,ModelReader<?>> modelReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model
getModel(String modelType)
ModelReader
getModelReader(String modelType, String type)
Map<String,ModelReader<?>>
getModelReaders()
-
-
-
Method Detail
-
getModelReader
public ModelReader getModelReader(String modelType, String type)
-
getModelReaders
public Map<String,ModelReader<?>> getModelReaders()
-
-