Interface XmlContentImporter
- All Superinterfaces:
ContentImporter,Prioritizable
- All Known Implementing Classes:
AbstractXmlContentImporter,DefaultXmlContentImporter
ContentImporter which imports contents from XML files.The
supports(Document) method is used instead of the ContentImporter.supports(InputStream, String),
so that the XML file is parsed only once.-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if theXmlContentImporteris able to import the corresponding Document.Methods inherited from interface org.ametys.plugins.contentio.in.ContentImporter
importContents, supportsMethods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
Method Details
-
supports
Tests if theXmlContentImporteris able to import the corresponding Document.- Parameters:
document- the XMLDocumentto test.- Returns:
- true if the
XmlContentImportercan import the corresponding stream, false otherwise. - Throws:
IOException- if an error occurs.
-