Revision 28076 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/persistence/Persistent.java
Persistent.java | ||
---|---|---|
3 | 3 |
public interface Persistent { |
4 | 4 |
|
5 | 5 |
/** |
6 |
* Get the persistent state of the object and append to the passed state. |
|
7 |
* |
|
8 |
* @param state |
|
9 |
*/ |
|
10 |
public PersistentState getState() throws PersistenceException; |
|
11 |
|
|
12 |
/** |
|
13 |
* Load the state of the object over the passed state. |
|
6 |
* Saves the internal state of the object on the provided |
|
7 |
* PersistentState object. |
|
14 | 8 |
* |
15 | 9 |
* @param state |
16 | 10 |
*/ |
17 |
public void loadState(PersistentState state) throws PersistenceException;
|
|
11 |
public void saveToState(PersistentState state) throws PersistenceException;
|
|
18 | 12 |
|
19 | 13 |
/** |
20 | 14 |
* Set the state of the object from the state passed as parameter. |
Also available in: Unified diff