Package com.tangosol.run.xml
Interface XmlSerializable
- All Known Implementing Classes:
SimpleDocument,SimpleElement,XmlBean
public interface XmlSerializable
An interface for XML serialization.
- Author:
- cp 2000.10.22
-
Method Summary
Modifier and TypeMethodDescriptionvoidfromXml(XmlElement xml) Deserialize the object from an XmlElement.toXml()Serialize the object into an XmlElement.
-
Method Details
-
toXml
XmlElement toXml()Serialize the object into an XmlElement.- Returns:
- an XmlElement that contains the serialized form of the object
-
fromXml
Deserialize the object from an XmlElement. This method can throw one of several RuntimeExceptions.- Parameters:
xml- an XmlElement that contains the serialized form of the object- Throws:
UnsupportedOperationException- if the operation is not supportedIllegalStateException- if this is not an appropriate stateIllegalArgumentException- if there is an illegal argument
-