public interface XmlSerializable
Modifier and Type | Method | Description |
---|---|---|
void |
fromXml(XmlElement xml) |
Deserialize the object from an XmlElement.
|
XmlElement |
toXml() |
Serialize the object into an XmlElement.
|
XmlElement toXml()
void fromXml(XmlElement xml)
xml
- an XmlElement that contains the serialized form of the
objectUnsupportedOperationException
- if the operation is not supportedIllegalStateException
- if this is not an appropriate stateIllegalArgumentException
- if there is an illegal argument