|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLSerializable
Interface implemented by object to be serialisable (back and forth) to XML.
XMLEventParser
,
XMLSerializer
Method Summary | |
---|---|
void |
endElement(String uri,
String localName,
XMLEventParser parser)
Receive notification of the end of an element. |
void |
serialize(XMLSerializer serializer)
Serialize this object to an XML representation (in a DOM tree, a Stream, ...). |
void |
startElement(String uri,
String localName,
XMLEventParser parser)
Receive notification of the start of an element. |
Method Detail |
---|
void startElement(String uri, String localName, XMLEventParser parser) throws XMLParseException
uri
- The started element namespace URI.localName
- The started element local name (= name without the namespace prefix) .parser
- The current XML event parser. From this parser you can get the attributes of the started element, the SAX
Locator, the defined namespace prefix mappings.
XMLParseException
- Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
void endElement(String uri, String localName, XMLEventParser parser) throws XMLParseException
uri
- The ended element namespace URI.localName
- The ended element local name (= name without the namespace prefix) .parser
- The current XML event parser. From this parser you can get SAX Locator or the text content of the ended
element.
XMLParseException
- Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
void serialize(XMLSerializer serializer) throws XMLSerializeException
serializer
- The object implementing the actual serialization.
XMLSerializeException
- if something fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |