Statistics
| Revision:

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

History | View | Annotate | Download (448 Bytes)

1
package org.gvsig.tools.persistence;
2

    
3

    
4
public interface Persistent {
5

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

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

    
21
}