Interface XmlContentImporter
-
- All Superinterfaces:
ContentImporter
,Prioritizable
- All Known Implementing Classes:
AbstractXmlContentImporter
,DefaultXmlContentImporter
public interface XmlContentImporter extends ContentImporter
ContentImporter
which imports contents from XML files.
Thesupports(Document)
method is used instead of theContentImporter.supports(InputStream, String)
, so that the XML file is parsed only once.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
supports(Document document)
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 Detail
-
supports
boolean supports(Document document) throws IOException
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.
-
-