Class XmlObjectModelReader
- java.lang.Object
-
- org.nuiton.eugene.ModelReader<ObjectModel>
-
- org.nuiton.eugene.models.object.reader.AbstractObjectModelReader
-
- org.nuiton.eugene.models.object.reader.XmlObjectModelReader
-
@Component(role=ModelReader.class, hint="xmlobjectmodel") public class XmlObjectModelReader extends AbstractObjectModelReader
To read object xml model 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 org.apache.commons.digester3.Digester
digester
-
Fields inherited from class org.nuiton.eugene.ModelReader
strictLoading, tagValueMetadatasProvider, verbose
-
-
Constructor Summary
Constructors Constructor Description XmlObjectModelReader()
-
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
-
-
-
-
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
-
-