Oracle® Coherence Java API Reference
v3.5

E14977-01

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
 void fromXml(XmlElement xml)
          Deserialize the object from an XmlElement.
 XmlElement toXml()
          Serialize the object into an XmlElement.
 

Method Detail

toXml

XmlElement toXml()
Serialize the object into an XmlElement.

Returns:
an XmlElement that contains the serialized form of the object

fromXml

void fromXml(XmlElement xml)
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:
java.lang.UnsupportedOperationException
java.lang.IllegalStateException
java.lang.IllegalArgumentException

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.