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, writeEntitiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOrderprotected Collection<?> importFile(DataFile importFile) throws DataImportException, IOException
GenericDataProviderimportFile in class GenericDataProviderimportFile - 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)
GenericDataProviderisImportFile in class GenericDataProviderfile - the file to checktrue if that file needs to be imported by this data providerCopyright © 2022 fastnate.org. All rights reserved.