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 TypeMethodDescriptionboolean
Tests if theXmlContentImporter
is able to import the corresponding Document.Methods inherited from interface org.ametys.plugins.contentio.in.ContentImporter
importContents, supports
Methods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
Method Details
-
supports
Tests if theXmlContentImporter
is able to import the corresponding Document.- Parameters:
document
- the XMLDocument
to test.- Returns:
- true if the
XmlContentImporter
can import the corresponding stream, false otherwise. - Throws:
IOException
- if an error occurs.
-