1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.exorcist.api;
17
18 /***
19 * Converter plugin interface. This is the interface implemented by
20 * the Exorcist converter plugins. Converter plugins are used to transform
21 * a content state snapshot created by an exporter plugin into a content model
22 * expected by an importer plugin.
23 */
24 public interface ContentConverter {
25
26 /***
27 * Converts content from a source content model to a target content model.
28 *
29 * @param state the content state snapshot to be populated
30 * @throws ContentException if the selected content could not be converted
31 */
32 void convertContent(ContentState state) throws ContentException;
33
34 }