Revision 42700 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureType.java
DefaultFeatureType.java | ||
---|---|---|
31 | 31 |
import java.util.Iterator; |
32 | 32 |
import java.util.List; |
33 | 33 |
import java.util.Set; |
34 |
import java.util.zip.CRC32; |
|
35 | 34 |
|
36 | 35 |
import org.cresques.cts.IProjection; |
37 | 36 |
|
... | ... | |
53 | 52 |
import org.gvsig.tools.dynobject.exception.DynObjectValidateException; |
54 | 53 |
|
55 | 54 |
public class DefaultFeatureType extends ArrayList<FeatureAttributeDescriptor> implements FeatureType, |
56 |
DynClass { |
|
55 |
DynClass, org.gvsig.tools.lang.Cloneable {
|
|
57 | 56 |
|
58 | 57 |
/** |
59 | 58 |
* |
... | ... | |
110 | 109 |
attr = (DefaultFeatureAttributeDescriptor) iter.next(); |
111 | 110 |
this.intitalizeAddAttibute(attr); |
112 | 111 |
} |
112 |
if( other.pk!=null ) { |
|
113 |
this.pk = new FeatureAttributeDescriptor[other.pk.length]; |
|
114 |
for( int i=0; i<other.pk.length; i++ ) { |
|
115 |
this.pk[i] = other.pk[i].getCopy(); |
|
116 |
} |
|
117 |
} |
|
118 |
} |
|
113 | 119 |
} |
114 | 120 |
this.defaultGeometryAttributeName = other.defaultGeometryAttributeName; |
115 | 121 |
this.hasEvaluators = other.hasEvaluators; |
... | ... | |
161 | 167 |
public FeatureType getCopy() { |
162 | 168 |
return new DefaultFeatureType(this); |
163 | 169 |
} |
170 |
|
|
171 |
public Object clone() { |
|
172 |
return this.getCopy(); |
|
173 |
} |
|
164 | 174 |
|
165 | 175 |
public int getDefaultGeometryAttributeIndex() { |
166 | 176 |
return this.defaultGeometryAttributeIndex; |
Also available in: Unified diff