Revision 2341 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/util/persistence/GenericPersistentObject.java
GenericPersistentObject.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
4 | 4 |
import org.gvsig.fmap.dal.coverage.store.props.Statistics; |
5 |
import org.gvsig.raster.impl.datastruct.Kernel; |
|
6 |
import org.gvsig.raster.impl.grid.filter.convolution.ConvolutionUI; |
|
7 | 5 |
import org.gvsig.tools.ToolsLocator; |
8 | 6 |
import org.gvsig.tools.dynobject.DynStruct; |
9 | 7 |
import org.gvsig.tools.persistence.PersistenceManager; |
... | ... | |
29 | 27 |
result = new GenericPersistentColorTable(); |
30 | 28 |
if(obj instanceof String) |
31 | 29 |
result = new GenericPersistentString(); |
32 |
if(obj instanceof ConvolutionUI) |
|
33 |
result = new GenericPersistentConvolutionUI(); |
|
30 |
//if(obj instanceof ConvolutionUI)
|
|
31 |
//result = new GenericPersistentConvolutionUI();
|
|
34 | 32 |
if(obj instanceof double[]) |
35 | 33 |
result = new GenericPersistentDoubleArray(); |
36 | 34 |
if(obj instanceof int[]) |
37 | 35 |
result = new GenericPersistentIntArray(); |
36 |
if(obj instanceof boolean[]) |
|
37 |
result = new GenericPersistentBooleanArray(); |
|
38 | 38 |
if(obj instanceof Statistics) |
39 | 39 |
result = new GenericPersistentStatistics(); |
40 | 40 |
if(result != null) |
... | ... | |
90 | 90 |
); |
91 | 91 |
definition.addDynFieldString("value").setClassOfValue(String.class).setMandatory(false); |
92 | 92 |
|
93 |
definition = manager.addDefinition( |
|
93 |
/*definition = manager.addDefinition(
|
|
94 | 94 |
GenericPersistentConvolutionUI.class, |
95 | 95 |
"GenericPersistentConvolutionUI_Persistence", |
96 | 96 |
"Generic ConvolutionUI Persistence", |
97 | 97 |
null, |
98 | 98 |
null |
99 | 99 |
); |
100 |
definition.addDynFieldObject("value").setClassOfValue(Kernel.class).setMandatory(false); |
|
100 |
definition.addDynFieldObject("value").setClassOfValue(Kernel.class).setMandatory(false);*/
|
|
101 | 101 |
|
102 | 102 |
definition = manager.addDefinition( |
103 | 103 |
GenericPersistentDoubleArray.class, |
... | ... | |
117 | 117 |
); |
118 | 118 |
definition.addDynFieldList("value").setClassOfItems(int.class).setMandatory(false); |
119 | 119 |
|
120 |
definition = manager.addDefinition( |
|
121 |
GenericPersistentBooleanArray.class, |
|
122 |
"GenericPersistentBooleanArray_Persistence", |
|
123 |
"Generic Boolean Array Persistence", |
|
124 |
null, |
|
125 |
null |
|
126 |
); |
|
127 |
definition.addDynFieldList("value").setClassOfItems(boolean.class).setMandatory(false); |
|
120 | 128 |
|
129 |
|
|
121 | 130 |
definition = manager.addDefinition( |
122 | 131 |
GenericPersistentStatistics.class, |
123 | 132 |
"GenericPersistentStatistics_Persistence", |
Also available in: Unified diff