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.
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Gets the class name of the object.
|
XMLEntity |
getXMLEntity()
Returns an XML entity with all necessary information of the object to marshall.
|
void |
setXMLEntity(XMLEntity xml)
Sets an XML entity with all necessary information of the object.
|
String getClassName()
Gets the class name of the object.
XMLEntity getXMLEntity() throws XMLException
Returns an XML entity with all necessary information of the object to marshall.
XMLException
void setXMLEntity(XMLEntity xml) throws XMLException
Sets an XML entity with all necessary information of the object.
xml
- the XML entity with all necessary information of the objectXMLException