Interface IPersistence

All Known Subinterfaces:
IPersistenceObject

public interface IPersistence

Any object that needs store its data to restore it after, should implement IPersistence.

The process of persisting (for instance in a file) the information of an object using XML is named Marshall, whereas the inverse process in named Unmarshall.

It's necessary specify the name of the class that will be persisted or restored.

Author:
fjp
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the class name of the object.
    Returns an XML entity with all necessary information of the object to marshall.
    void
    Sets an XML entity with all necessary information of the object.
  • Method Details

    • getClassName

      String getClassName()

      Gets the class name of the object.

      Returns:
      the class name of the object
    • getXMLEntity

      XMLEntity getXMLEntity() throws XMLException

      Returns an XML entity with all necessary information of the object to marshall.

      Returns:
      the XML entity with all necessary information of the object
      Throws:
      XMLException
    • setXMLEntity

      void setXMLEntity(XMLEntity xml) throws XMLException

      Sets an XML entity with all necessary information of the object.

      Parameters:
      xml - the XML entity with all necessary information of the object
      Throws:
      XMLException