Interface XmlContentImporter
- 
- All Superinterfaces:
 ContentImporter,Prioritizable
- All Known Implementing Classes:
 AbstractXmlContentImporter,DefaultXmlContentImporter
public interface XmlContentImporter extends ContentImporter
ContentImporterwhich 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 booleansupports(Document document)Tests if theXmlContentImporteris 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 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.
 
 - 
 
 -