-
public interface XmlSerializableOptional interface implemented byDataObjects that support XML serialization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetXmlTagName()The tag name used towrite this objectas top-level element in an XML document.voidwriteContent(XMLStreamWriter out)Writes the contents of this object (attributes and sub-elements) to XML.default voidwriteTo(XMLStreamWriter out)Serializes this object to XML.
-
-
-
Method Detail
-
writeTo
default void writeTo(XMLStreamWriter out) throws XMLStreamException
Serializes this object to XML.- Parameters:
out- TheXMLStreamWriterto write this object to.- Throws:
XMLStreamException- If writing fails.
-
writeContent
void writeContent(XMLStreamWriter out) throws XMLStreamException
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.
-
-