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 StringgetInputType()Gets the type of input file.StringgetModelType()Gets the type of model.protected voidloadPropertyFile(File stateModelFile, StateModelImpl stateModel)Try to load property file, associated to current statemodel fileStateModelread(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:ModelReaderGets the type of model.- Specified by:
getModelTypein classModelReader<StateModel>- Returns:
- the type of model.
- See Also:
ModelHelper.ModelType
-
getInputType
public String getInputType()
Description copied from class:ModelReaderGets the type of input file. For examplexml, oryaml.- Specified by:
getInputTypein classModelReader<StateModel>- Returns:
- the type of input file.
-
read
public StateModel read(File... files)
Description copied from class:ModelReaderRead files to produce a memory model.- Specified by:
readin 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
-
-