public interface XMLSerializable
Specifies a class that can add comments and extra element to its current value to nodes of an XML DOM tree. All metadata objects can serialize themselves as XML using their symbol names. If this interface is implemented, a descriptive comment can be added and additional child nodes created.
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLChildren(Node parent)
Append extra child elements to the given parent node to serialize the value of an object
to an XML fragment.
|
String |
getComment()
Include a comment when serializing a value to XML.
|
void appendXMLChildren(Node parent)
Append extra child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder class are provided to help with this
process.
parent - XML parent element to append child nodes to.String getComment()
Include a comment when serializing a value to XML. The comment will be inserted as the first child node of the element representing the class.
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.