public class GenericXmlDataProvider extends GenericDataProvider
$dataFolder/entities
.
If the XML file has an entity name or is inside a directory with an entity name, and that entity class is annotated
with XmlRootElement
, the JaxbImporter
is used, otherwise the XmlDataImporter
is used.Constructor and Description |
---|
GenericXmlDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected Collection<?> |
importFile(DataFile importFile)
Tries to import the given file.
|
protected boolean |
isImportFile(DataFile file)
Indicates that the given file is imported.
|
buildEntities, findEntityClass, getContext, getEntityRegistration, writeEntities
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
protected Collection<?> importFile(DataFile importFile) throws DataImportException, IOException
GenericDataProvider
importFile
in class GenericDataProvider
importFile
- the file that contains the entitiesnull
if the file was not importedDataImportException
- if the file content was invalidIOException
- if the file was not accessibleprotected boolean isImportFile(DataFile file)
GenericDataProvider
isImportFile
in class GenericDataProvider
file
- the file to checktrue
if that file needs to be imported by this data providerCopyright © 2022 fastnate.org. All rights reserved.