com.nexaweb.util
Interface XmlSerializable

All Known Implementing Classes:
ClientInfo, SessionConfig

public interface XmlSerializable

Classes implementing this interface may have their instances serialized in XML form. This interface is used internally for objects such as ClientInfo and it may be implemented by application objects as well for use in messaging.

Just as with java.io.Serializable, XmlSerializable objects should supply a public no-args constructor.

Since:
4.0
See Also:
MessageListener

Method Summary
 void fromXml(java.lang.String xml)
          Populates the object from its xml representation.
 java.lang.String toXml()
          Returns an xml representation of the object.
 

Method Detail

toXml

public java.lang.String toXml()
Returns an xml representation of the object. Any XML returned from this method must be valid as an argument to the fromXml(java.lang.String) method. The form of the XML is specific to the implementation.

Returns:
an xml representation of the object.
Since:
4.0

fromXml

public void fromXml(java.lang.String xml)
             throws ParserException
Populates the object from its xml representation. The XML specified to this method must be from the toXml() method on the same Object or be of the same form.

Parameters:
xml - The xml obtained from toXml().
Throws:
ParserException
Since:
4.0


Copyright © 2005 Nexaweb Technologies, Inc. All Rights Reserved.