Interface XmlAble

All Known Implementing Classes:
AgentImpl, AnonymousAgentImpl, BotAgent, EnvelopeVersion, EthereumAgent, EthereumGroupAgent, GroupAgentImpl, LoadedNetworkLibrary, Message, MonitoringAgent, NodeInformation, PassphraseAgentImpl, ServiceAgentImpl, TestAgent, UserAgentImpl

public interface XmlAble
The old XmlAble interface enforced an setStateFromXmlMethod. Due to several problems I decided to remove this method and leave the deserialization in the hand of the programmer. If standard methods are to be used, the programmer of an XmlAble class should used one of the following methods
  1. Use a factory called createFromXml ( String xml )
    This is the preferred idea. An interface may not enforce static methods however...
  2. Use a Constructor with a single String parameter
  3. Use a base constructor in combination with setStateFromXml ( String )
    This corresponds to the old XmlAble.
  • Method Summary

    Modifier and Type
    Method
    Description
    static XmlAble
    this method goes through the three possible standard deserialization methods defined in XmlAble to try to deserialize an XmlString into an instance of the given class
    static XmlAble
    createFromXml(String xml, String classname)
    create an XmlAble java object from its xml representation
    Returns a XML representation of this object.