Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / persistence / Persistent.java @ 28468

History | View | Annotate | Download (447 Bytes)

1
package org.gvsig.tools.persistence;
2

    
3
public interface Persistent {
4

    
5
        /**
6
         * Saves the internal state of the object on the provided
7
         * PersistentState object.
8
         * 
9
         * @param state
10
         */
11
        public void saveToState(PersistentState state) throws PersistenceException;
12

    
13
        /**
14
         * Set the state of the object from the state passed as parameter.
15
         *
16
         * @param state
17
         */
18
        public void loadFromState(PersistentState state) throws PersistenceException;
19

    
20
}