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