Package org.gvsig.utils
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 TypeMethodDescriptionGets the class name of the object.Returns an XML entity with all necessary information of the object to marshall.voidsetXMLEntity(XMLEntity xml) 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
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
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
-