gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.impl / src / main / java / org / gvsig / raster / util / persistence / GenericPersistentBoolean.java @ 2443
History | View | Annotate | Download (552 Bytes)
1 |
package org.gvsig.raster.util.persistence; |
---|---|
2 |
|
3 |
import org.gvsig.tools.persistence.PersistentState; |
4 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
5 |
|
6 |
/**
|
7 |
*
|
8 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
9 |
*
|
10 |
*/
|
11 |
public class GenericPersistentBoolean extends GenericPersistentObject { |
12 |
public void loadFromState(PersistentState state) throws PersistenceException { |
13 |
obj = state.getBoolean("value");
|
14 |
} |
15 |
public void saveToState(PersistentState state) throws PersistenceException { |
16 |
state.set("value", ((Boolean)obj).booleanValue()); |
17 |
} |
18 |
} |