1
2
3
4
5
6
7
8 package net.sf.jour.config.impl.runtime;
9
10 import org.xml.sax.SAXException;
11
12 /***
13 * For a generated class to be serializable, it has to
14 * implement this interface.
15 *
16 * @author Kohsuke Kawaguchi
17 */
18 public interface XMLSerializable
19 {
20 /***
21 * Serializes child elements and texts into the specified target.
22 */
23 void serializeBody( XMLSerializer target ) throws SAXException;
24
25 /***
26 * Serializes attributes into the specified target.
27 */
28 void serializeAttributes( XMLSerializer target ) throws SAXException;
29
30 /***
31 * Declares all the namespace URIs this object is using at
32 * its top-level scope into the specified target.
33 */
34 void serializeURIs( XMLSerializer target ) throws SAXException;
35
36 }