Package org.nuiton.eugene.models.state
Class StateModelReader
- java.lang.Object
-
- org.nuiton.eugene.ModelReader<StateModel>
-
- org.nuiton.eugene.models.state.StateModelReader
-
@Component(role=ModelReader.class, hint="statemodel") public class StateModelReader extends ModelReader<StateModel>
To read state model files into a memory state model. Created: 26 oct. 2009- Author:
- Florian Desbois - desbois@codelutin.com
-
-
Field Summary
-
Fields inherited from class org.nuiton.eugene.ModelReader
strictLoading, tagValueMetadatasProvider, verbose
-
-
Constructor Summary
Constructors Constructor Description StateModelReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInputType()
Gets the type of input file.String
getModelType()
Gets the type of model.protected void
loadPropertyFile(File stateModelFile, StateModelImpl stateModel)
Try to load property file, associated to current statemodel fileStateModel
read(File... files)
Read files to produce a memory model.-
Methods inherited from class org.nuiton.eugene.ModelReader
isStrictLoading, isVerbose, setStrictLoading, setVerbose
-
-
-
-
Method Detail
-
getModelType
public String getModelType()
Description copied from class:ModelReader
Gets the type of model.- Specified by:
getModelType
in classModelReader<StateModel>
- Returns:
- the type of model.
- See Also:
ModelHelper.ModelType
-
getInputType
public String getInputType()
Description copied from class:ModelReader
Gets the type of input file. For examplexml
, oryaml
.- Specified by:
getInputType
in classModelReader<StateModel>
- Returns:
- the type of input file.
-
read
public StateModel read(File... files)
Description copied from class:ModelReader
Read files to produce a memory model.- Specified by:
read
in classModelReader<StateModel>
- Parameters:
files
- files to read- Returns:
- the new model builded from files
-
loadPropertyFile
protected void loadPropertyFile(File stateModelFile, StateModelImpl stateModel)
Try to load property file, associated to current statemodel file- Parameters:
stateModelFile
- state model filestateModel
- state model
-
-