KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > tools > xjc > runtime > XMLSerializable


1 package com.sun.tools.xjc.runtime;
2
3 import org.xml.sax.SAXException JavaDoc;
4 import com.sun.xml.bind.JAXBObject;
5
6 /**
7  * For a generated class to be serializable, it has to
8  * implement this interface.
9  *
10  * @author Kohsuke Kawaguchi
11  */

12 public interface XMLSerializable extends JAXBObject
13 {
14     /**
15      * Serializes child elements and texts into the specified target.
16      */

17     void serializeBody( XMLSerializer target ) throws SAXException JavaDoc;
18     
19     /**
20      * Serializes attributes into the specified target.
21      */

22     void serializeAttributes( XMLSerializer target ) throws SAXException JavaDoc;
23     
24     /**
25      * Declares all the namespace URIs this object is using at
26      * its top-level scope into the specified target.
27      */

28     void serializeURIs( XMLSerializer target ) throws SAXException JavaDoc;
29
30 }
31
Popular Tags