Class YamlObjectModelReader
- java.lang.Object
-
- org.nuiton.eugene.ModelReader<ObjectModel>
-
- org.nuiton.eugene.models.object.reader.AbstractObjectModelReader
-
- org.nuiton.eugene.models.object.reader.YamlObjectModelReader
-
@Component(role=ModelReader.class, hint="yamlobjectmodel") public class YamlObjectModelReader extends AbstractObjectModelReader
To read object model from yaml files into an memory object model.- Since:
- 2.6.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected LoadYamlFile
loaderYAML
-
Fields inherited from class org.nuiton.eugene.ModelReader
strictLoading, tagValueMetadatasProvider, verbose
-
-
Constructor Summary
Constructors Constructor Description YamlObjectModelReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeReadFile(File... files)
String
getInputType()
Gets the type of input file.protected void
readFileToModel(File file, ObjectModel model)
-
Methods inherited from class org.nuiton.eugene.models.object.reader.AbstractObjectModelReader
addAllSubPackages, addSubPackages, getModelType, read
-
Methods inherited from class org.nuiton.eugene.ModelReader
isStrictLoading, isVerbose, setStrictLoading, setVerbose
-
-
-
-
Field Detail
-
loaderYAML
protected LoadYamlFile loaderYAML
-
-
Method Detail
-
getInputType
public String getInputType()
Description copied from class:ModelReader
Gets the type of input file. For examplexml
, oryaml
.- Specified by:
getInputType
in classModelReader<ObjectModel>
- Returns:
- the type of input file.
-
beforeReadFile
protected void beforeReadFile(File... files)
- Overrides:
beforeReadFile
in classAbstractObjectModelReader
-
readFileToModel
protected void readFileToModel(File file, ObjectModel model) throws IOException
- Specified by:
readFileToModel
in classAbstractObjectModelReader
- Throws:
IOException
-
-