public interface XmlSerializable
Optional interface implemented by
DataObjects that support XML serialization.-
Method Summary
Modifier and TypeMethodDescriptionThe tag name used towrite this objectas top-level element in an XML document.voidWrites the contents of this object (attributes and sub-elements) to XML.default voidwriteTo(XMLStreamWriter out) Serializes this object to XML.
-
Method Details
-
writeTo
Serializes this object to XML.- Parameters:
out- TheXMLStreamWriterto write this object to.- Throws:
XMLStreamException- If writing fails.
-
writeContent
Writes the contents of this object (attributes and sub-elements) to XML.- Parameters:
out- TheXMLStreamWriterto write this object to.- Throws:
XMLStreamException- If writing fails.
-
getXmlTagName
String getXmlTagName()The tag name used towrite this objectas top-level element in an XML document.
-